This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new d458f1af348 fix compile for jdk17
d458f1af348 is described below
commit d458f1af348203eb2109bf34d22ecd3d5308960e
Author: yiguolei <[email protected]>
AuthorDate: Thu May 30 20:17:54 2024 +0800
fix compile for jdk17
---
.../main/java/org/apache/doris/nereids/stats/FilterEstimation.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java
index 17b1eb39387..d66b342a16a 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java
@@ -286,11 +286,11 @@ public class FilterEstimation extends
ExpressionVisitor<Statistics, EstimationCo
return Optional.empty();
}
Optional<DateLiteral> newMinExpr =
tryConvertStrLiteralToDateLiteral(colStats.minExpr);
- if (newMinExpr.isEmpty()) {
+ if (!newMinExpr.isPresent()) {
return Optional.empty();
}
Optional<DateLiteral> newMaxExpr =
tryConvertStrLiteralToDateLiteral(colStats.maxExpr);
- if (newMaxExpr.isEmpty()) {
+ if (!newMaxExpr.isPresent()) {
return Optional.empty();
}
if (newMaxExpr.get().getType() != newMinExpr.get().getType()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]