PURVANGIKA commented on issue #7016:
URL: https://github.com/apache/iotdb/issues/7016#issuecomment-2601511817
public static Expression reconstructTernaryExpression(
Expression expression,
Expression firstExpression,
Expression secondExpression,
Expression thirdExpression) {
// Check if the expression type is BETWEEN
if (expression.getExpressionType() == ExpressionType.BETWEEN) {
return new BetweenExpression(
firstExpression,
secondExpression,
thirdExpression,
((BetweenExpression) expression).isNotBetween());
} else {
// Throw an exception for unsupported expression types
throw new IllegalArgumentException(
"Unsupported expression type: " +
expression.getExpressionType());
}
}
--
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]