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

Hash partitioner dosn't handle negative hash values and may produce empty schemas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      The hash function may return a negative value, which was not handled by the partitioner's use of modulus (which carries sign in Java).

      Also, the OutgoingRecordBatch clears the schema if the last batch is empty.

      Attachments

        1. DRILL-242.patch
          3 kB
          Ben Becker

        Activity

          People

            benjamin.becker Ben Becker
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: