You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mustafa İman (Jira)" <ji...@apache.org> on 2021/01/20 23:07:00 UTC

[jira] [Created] (HIVE-24672) compute_stats_long.q fails for wrong reasons

Mustafa İman created HIVE-24672:
-----------------------------------

             Summary: compute_stats_long.q fails for wrong reasons
                 Key: HIVE-24672
                 URL: https://issues.apache.org/jira/browse/HIVE-24672
             Project: Hive
          Issue Type: Bug
            Reporter: Mustafa İman
            Assignee: Mustafa İman


TestNegativeCliDriver[compute_stats_long] intends to test fmsketch has a hard limit on number of bit vectors (1024). However, the test fails for the following wrong reason.
{code:java}
Caused by: java.lang.RuntimeException: Can not recognize 10000Caused by: java.lang.RuntimeException: Can not recognize 10000 at org.apache.hadoop.hive.common.ndv.NumDistinctValueEstimatorFactory.getEmptyNumDistinctValueEstimator(NumDistinctValueEstimatorFactory.java:71)
{code}
Instead it should fail with 
{code:java}
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: The maximum allowed value for number of bit vectors  is 1024, but was passed 10000 bit vectorsCaused by: org.apache.hadoop.hive.ql.metadata.HiveException: The maximum allowed value for number of bit vectors  is 1024, but was passed 10000 bit vectors at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFComputeBitVectorFMSketch$NumericStatsEvaluator.iterate(GenericUDAFComputeBitVectorFMSketch.java:125) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
{code}
Since this function is superseeded by compute_bit_vector_fm, it is best if we add the same test for compute_bit_vector_fm too.

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)