okumin commented on code in PR #6505:
URL: https://github.com/apache/hive/pull/6505#discussion_r4747169829
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/FilterSelectivityEstimator.java:
##########
@@ -74,6 +74,7 @@ public class FilterSelectivityEstimator extends
RexVisitorImpl<Double> {
private final double childCardinality;
private final RelMetadataQuery mq;
private final RexBuilder rexBuilder;
+ private boolean unknownSeen;
Review Comment:
The list is aligned with me.
- Revert all or the vast majority and rework on another PR with proper
subject-matter experts: 45c29a03e375b172826900f2c4f768ec9c33b7d1,
9cc9cfbbb822db7fce6c740b4b21e0f5c8f1cd85,
85b3980f84571398351d0200800aefd020a6c153,
3241f0ce0754439f7ebd713c6204b0da536770b9
- Keep: ecb61df3ac0c4312807cfcaec34798915042e537
> That also drops the null-safety fixes that came with it, including the
NOT/SEARCH handling and the lateral-view NPE fix (that NPE also happens on
master), and the tests added for them (TestHiveRelMdRowCount,
TestHiveRelMdSelectivity, cbo_ndv_unknown_estimates.q, cbo_ndv_unknown_pkfk.q).
Unless a degradation happens, it sounds fine.
I can also agree with (3) and (4).
--
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]