YiwenWu commented on code in PR #3798:
URL: https://github.com/apache/calcite/pull/3798#discussion_r1615421383


##########
core/src/main/java/org/apache/calcite/util/RelToSqlConverterUtil.java:
##########
@@ -63,6 +63,36 @@ public static void unparseHiveTrim(
     }
   }
 
+  /**
+   * Unparses Array and Map value constructor.
+   *
+   * <p>For example :
+   *
+   * <blockquote><pre>
+   * SELECT ARRAY[1, 2, 3] &rarr; SELECT ARRAY (1, 2, 3)
+   * SELECT MAP['k1', 'v1', 'k2', 'v2'] &rarr; SELECT MAP ('k1', 'v1', 'k2', 
'v2')
+   * </pre></blockquote>
+   *
+   * @param writer writer
+   * @param call the call
+   */
+  public static void unparseSparkArrayAndMap(SqlWriter writer,

Review Comment:
   minor: putting the unparse method in the `RelToSqlConverterUtil` tool class 
feels a bit ambiguous,  because unparse should belong to SqlNode to Sql rather 
than RelNode to SqlNode.
   



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