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

refactor bucketId generating code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.3.0
    • Query Processor
    • None

    Description

      HIVE-11983 adds ObjectInspectorUtils.getBucketHashCode() and getBucketNumber().

      There are several (at least) places in Hive that perform this computation:

      1. ReduceSinkOperator.computeBucketNumber
      2. ReduceSinkOperator.computeHashCode
      3. BucketIdResolverImpl - only in 2.0.0 ASF line
      4. FileSinkOperator.findWriterOffset
      5. GenericUDFHash

      Should refactor it and make sure they all call methods from ObjectInspectorUtils.

      Attachments

        1. HIVE-12025.2.patch
          9 kB
          Eugene Koifman
        2. HIVE-12025.3.patch
          14 kB
          Eugene Koifman
        3. HIVE-12025.patch
          9 kB
          Eugene Koifman

        Issue Links

          Activity

            People

              ekoifman Eugene Koifman
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: