Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7157

skipRows() method in TreeReader subclasses in RecordReaderImpl should check return value from stream.skip()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Later
    • None
    • None
    • None
    • None

    Description

      This is an example from DoubleTreeReader#skipRows():

            stream.skip(items * 8);
      

      skip() method returns actual number of bytes returned. The return value should be checked against input parameter.

      skipRows() method of BinaryTreeReader and StringDirectTreeReader classes has the same issue.

      Attachments

        Activity

          People

            swarnim Swarnim Kulkarni
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: