NobiGo commented on code in PR #3897:
URL: https://github.com/apache/calcite/pull/3897#discussion_r1702923677


##########
core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java:
##########
@@ -726,6 +726,31 @@ public SqlNode toSql(@Nullable RexProgram program, RexNode 
rex) {
           }
         }
         elseNode = caseNodeList.get(caseNodeList.size() - 1);
+
+        if (caseCall.getType().getSqlTypeName() == SqlTypeName.BOOLEAN

Review Comment:
   For other databases, this is a special implementation. Can we rewrite CASE 
WHEN in OracleSqlDialect? Maybe `OracleSqlDialect.unparseCall` is a good place. 



-- 
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]

Reply via email to