You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2017/10/12 14:33:00 UTC

[jira] [Assigned] (DRILL-5790) PCAP format explicitly opens local file

     [ https://issues.apache.org/jira/browse/DRILL-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arina Ielchiieva reassigned DRILL-5790:
---------------------------------------

    Assignee: Arina Ielchiieva

> PCAP format explicitly opens local file
> ---------------------------------------
>
>                 Key: DRILL-5790
>                 URL: https://issues.apache.org/jira/browse/DRILL-5790
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.11.0
>            Reporter: Ted Dunning
>            Assignee: Arina Ielchiieva
>             Fix For: 1.12.0
>
>
> 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)