mihaibudiu commented on code in PR #4331:
URL: https://github.com/apache/calcite/pull/4331#discussion_r2058836217
##########
core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java:
##########
@@ -350,6 +350,15 @@ public static SqlNode convertConditionToSqlNode(RexNode
node,
*/
private static RexNode stripCastFromString(RexNode node, SqlDialect dialect)
{
switch (node.getKind()) {
+ case IS_NULL:
+ case IS_NOT_NULL:
+ final RexCall call0 = (RexCall) node;
+ final RexNode o = call0.operands.get(0);
+ if (o.getKind() == SqlKind.CAST) {
Review Comment:
I don't know if this is accurate.
For example, a CAST(VARIANT AS TYPE) will return NULL if the VARIANT object
does not store a value of the specified type.
--
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]