xiedeyantu commented on code in PR #4719:
URL: https://github.com/apache/calcite/pull/4719#discussion_r2674210904
##########
core/src/main/java/org/apache/calcite/sql/SqlDialect.java:
##########
@@ -812,6 +812,11 @@ public RexNode prepareUnparse(RexNode rexNode) {
return rexNode;
}
+ /** Rewrites a boolean literal to 1 or 0. */
Review Comment:
This is a good suggestion. My uncertainty is whether this rewriting is a
good approach and whether it will cause semantic ambiguity in the SQL in
certain scenarios.
--
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]