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

PCAP format explicitly opens local file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.0
    • 1.12.0
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: