xiedeyantu commented on code in PR #4406:
URL: https://github.com/apache/calcite/pull/4406#discussion_r2128232099


##########
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:
##########
@@ -9796,6 +9796,83 @@ private void checkLiteral2(String expression, String 
expected) {
         .withTrino().ok(expected);
   }
 
+  /** Test case for
+   * <a 
href="https://issues.apache.org/jira/browse/CALCITE-7048";>[CALCITE-7048]
+   * The specified type conversion does not support complex types in 
Presto</a>. */
+  @Test void testPrestoFloatingPointNestedTypesCast() {
+
+    String query1 = "SELECT CAST(MAP[MAP[3.0,4.0],1.0]"
+        + " AS MAP<MAP<FLOAT, FLOAT>, FLOAT>)"
+        + " FROM \"employee\"";
+    String expectedPresto1 = "SELECT CAST(MAP (ARRAY[MAP (ARRAY[3.0], 
ARRAY[4.0])], ARRAY[1.0])"

Review Comment:
   I think `1.0` should not be an `Array`.



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