File tree Expand file tree Collapse file tree
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ public Double visitCall(RexCall call) {
160160 }
161161
162162 case IS_NULL : {
163- if (childRel instanceof HiveTableScan ) {
164- HiveTableScan hiveTableScan = (HiveTableScan ) childRel ;
163+ if (childRel instanceof HiveTableScan hiveTableScan ) {
165164 Set <Integer > iRefSet = HiveCalciteUtil .getInputRefs (call );
166165 List <ColStatistics > colStats =
167166 hiveTableScan .getColStat (new ArrayList <>(iRefSet ));
@@ -174,7 +173,9 @@ public Double visitCall(RexCall call) {
174173 if (childCardinality >= noOfNulls ) {
175174 selectivity = noOfNulls / Math .max (childCardinality , 1 );
176175 } else {
177- HiveConfPlannerContext ctx = childRel .getCluster ().getPlanner ().getContext ().unwrap (HiveConfPlannerContext .class );
176+ HiveConfPlannerContext ctx =
177+ childRel .getCluster ().getPlanner ().getContext ()
178+ .unwrap (HiveConfPlannerContext .class );
178179 String msg = "Invalid statistics: Number of null values > number of tuples. " +
179180 "Consider recomputing statistics for table: " +
180181 ((RelOptHiveTable ) childRel .getTable ()).getHiveTableMD ().getFullyQualifiedName ();
You can’t perform that action at this time.
0 commit comments