Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-934

Merge join implementation currently does not seek to right point on the right side input based on the offset provided by the index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • None
    • None
    • Reviewed

    Description

      We use POLoad to seek into right file which has the following code:

         public void setUp() throws IOException{
      
              String filename = lFile.getFileName();
      
              loader = (LoadFunc)PigContext.instantiateFuncFromSpec(lFile.getFuncSpec());        
      
              is = FileLocalizer.open(filename, pc);
      
              loader.bindTo(filename , new BufferedPositionedInputStream(is), this.offset, Long.MAX_VALUE);
      
          }
      

      Between opening the stream and bindTo we do not seek to the right offset. bindTo itself does not perform any seek.

      Attachments

        1. pig-934_2.patch
          4 kB
          Ashutosh Chauhan

        Activity

          People

            ashutoshc Ashutosh Chauhan
            pkamath Pradeep Kamath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: