java.lang.UnsupportedOperationException: Computation of Hive bucket hashCode is not supported for Hive primitive category: DECIMAL.

GitHub | hegand | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Add support for decimal column hive bucket

    GitHub | 7 months ago | hegand
    java.lang.UnsupportedOperationException: Computation of Hive bucket hashCode is not supported for Hive primitive category: DECIMAL.

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Computation of Hive bucket hashCode is not supported for Hive primitive category: DECIMAL.

      at com.facebook.presto.hive.HiveBucketing.hash()
    2. com.facebook.presto
      HiveBucketFunction.getBucket
      1. com.facebook.presto.hive.HiveBucketing.hash(HiveBucketing.java:147)
      2. com.facebook.presto.hive.HiveBucketing.getBucketHashCode(HiveBucketing.java:93)
      3. com.facebook.presto.hive.HiveBucketing.getHiveBucket(HiveBucketing.java:86)
      4. com.facebook.presto.hive.HiveBucketFunction.getBucket(HiveBucketFunction.java:45)
      4 frames
    3. presto-main
      TaskExecutor$Runner.run
      1. com.facebook.presto.operator.PartitionFunction.getPartition(PartitionFunction.java:46)
      2. com.facebook.presto.operator.PartitionedOutputOperator$PagePartitioner.partitionPage(PartitionedOutputOperator.java:337)
      3. com.facebook.presto.operator.PartitionedOutputOperator.addInput(PartitionedOutputOperator.java:256)
      4. com.facebook.presto.operator.Driver.processInternal(Driver.java:384)
      5. com.facebook.presto.operator.Driver.processFor(Driver.java:301)
      6. com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:622)
      7. com.facebook.presto.execution.TaskExecutor$PrioritizedSplitRunner.process(TaskExecutor.java:529)
      8. com.facebook.presto.execution.TaskExecutor$Runner.run(TaskExecutor.java:665)
      8 frames
    4. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames