drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Dunning (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-5790) PCAP format explicitly opens local file
Date Thu, 14 Sep 2017 08:04:00 GMT
Ted Dunning created DRILL-5790:
----------------------------------

             Summary: PCAP format explicitly opens local file
                 Key: DRILL-5790
                 URL: https://issues.apache.org/jira/browse/DRILL-5790
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Ted Dunning


Note the new FileInputStream line
{code}
@Override
public void setup(final OperatorContext context, final OutputMutator output) throws ExecutionSetupException
{
    try {
        this.output = output;
        this.buffer = new byte[100000];
        this.in = new FileInputStream(inputPath);
        this.decoder = new PacketDecoder(in);
        this.validBytes = in.read(buffer);
        this.projectedCols = getProjectedColsIfItNull();
        setColumns(projectedColumns);
    } catch (IOException io) {
        throw UserException.dataReadError(io)
	    .addContext("File name:", inputPath)
	    .build(logger);
    }
}
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message