BiteTheDDDDt commented on code in PR #21559:
URL: https://github.com/apache/doris/pull/21559#discussion_r1257639210
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/ExpressionEstimation.java:
##########
@@ -172,6 +172,10 @@ public ColumnStatistic visitSlotReference(SlotReference
slotReference, Statistic
public ColumnStatistic visitBinaryArithmetic(BinaryArithmetic
binaryArithmetic, Statistics context) {
ColumnStatistic leftColStats = binaryArithmetic.left().accept(this,
context);
ColumnStatistic rightColStats = binaryArithmetic.right().accept(this,
context);
+ if (leftColStats == null || rightColStats == null) {
+ return ColumnStatistic.UNKNOWN;
+ }
Review Comment:
I ran into this problem during development, but then it didn't reappear. I
currently removed this code
--
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]