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


##########
core/src/main/java/org/apache/calcite/sql/dialect/SnowflakeSqlDialect.java:
##########
@@ -73,6 +80,30 @@ public SnowflakeSqlDialect(Context context) {
     }
   }
 
+  @Override public SqlNode rewriteMaxMinExpr(SqlNode aggCall, RelDataType 
relDataType) {
+    return rewriteMaxMin(aggCall, relDataType);
+  }
+
+  /**
+   * Helper for rewrites of MAX/MIN.
+   * Snowflake, rewrite as
+   * BOOLOR_AGG/BOOLAND_AGG if the return type is BOOLEAN.
+   */
+  public static SqlNode rewriteMaxMin(SqlNode aggCall, RelDataType 
relDataType) {

Review Comment:
   Consider adding your description, Add the specific SQL after the rewrite.



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