JackieTien97 commented on code in PR #16306:
URL: https://github.com/apache/iotdb/pull/16306#discussion_r2312966806
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/process/rowpattern/expression/Computation.java:
##########
@@ -129,6 +131,20 @@ private static Computation parse(
// undefined pattern variable is 'true'
BooleanLiteral constExpr = (BooleanLiteral) expression;
return new ConstantComputation(constExpr.getValue());
+ } else if (expression instanceof BinaryLiteral) {
+ BinaryLiteral constExpr = (BinaryLiteral) expression;
+ return new ConstantComputation(constExpr.getValue());
+ } else if (expression instanceof GenericLiteral) {
+ GenericLiteral constExpr = (GenericLiteral) expression;
+ String type = constExpr.getType();
+
+ if ("DATE".equalsIgnoreCase(type)) {
+ String dateStr = constExpr.getValue();
+ int dateInt = Integer.parseInt(dateStr);
+ return new ConstantComputation(dateInt);
+ } else {
+ return new ConstantComputation(constExpr.getValue());
+ }
Review Comment:
when this branch will take effect?
--
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]