caicancai commented on code in PR #4856:
URL: https://github.com/apache/calcite/pull/4856#discussion_r3025744632
##########
core/src/main/java/org/apache/calcite/sql/dialect/MssqlSqlDialect.java:
##########
@@ -172,6 +172,13 @@ public MssqlSqlDialect(Context context) {
final SqlWriter.Frame frame = writer.startFunCall("CEILING");
call.operand(0).unparse(writer, leftPrec, rightPrec);
writer.endFunCall(frame);
+ } else if (call.getKind() == SqlKind.SAFE_CAST) {
Review Comment:
Manually assembling unparsed logic is repetitive and fragile.
--
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]