soumyakanti3578 commented on code in PR #6477:
URL: https://github.com/apache/hive/pull/6477#discussion_r3244856935
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/FilterSelectivityEstimator.java:
##########
@@ -405,8 +411,10 @@ private static Range<Float> makeRange(float lower, float
upper, BoundType upperT
return lower > upper ? Range.closedOpen(0f, 0f) : Range.range(lower,
BoundType.CLOSED, upper, upperType);
}
- private double computeRangePredicateSelectivity(RexCall call, SqlKind op) {
- double defaultSelectivity = ((double) 1 / (double) 3);
+ private static final Double DEFAULT_COMPARISON_SELECTIVITY = ((double) 1 /
(double) 3);
Review Comment:
I think this variable can be moved to the top of the class with other
variables.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]