Gopal V created HIVE-13109: ------------------------------ Summary: NPE: Fix NDV estimator use within the StatsOptimizer Key: HIVE-13109 URL: https://issues.apache.org/jira/browse/HIVE-13109 Project: Hive Issue Type: Bug Components: Statistics Affects Versions: 2.1.0 Reporter: Gopal V Assignee: Gopal V Fix For: 2.1.0
compute_stats() UDF's size estimates only work within the Execution engine, not during optimizer pass. {code} java.lang.NullPointerException at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFComputeStats$GenericUDAFNumericStatsEvaluator$NumericStatsAgg.estimate(GenericUDAFComputeStats.java:434) at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFComputeStats$GenericUDAFDoubleStatsEvaluator$DoubleStatsAgg.estimate(GenericUDAFComputeStats.java:643) at org.apache.hadoop.hive.ql.optimizer.stats.annotation.StatsRulesProcFactory$GroupByStatsRule.checkMapSideAggregation(StatsRulesProcFactory.java:996) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)