Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5790

PCAP format explicitly opens local file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.11.0
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:

      Description

      Note the new FileInputStream line

      @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);
          }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tdunning Ted Dunning
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: