clesaec commented on code in PR #2918:
URL: https://github.com/apache/calcite/pull/2918#discussion_r979686806


##########
core/src/test/java/org/apache/calcite/test/SqlToRelConverterTest.java:
##########
@@ -4678,4 +4678,14 @@ void checkCorrelatedMapSubQuery(boolean expand) {
         .withConformance(SqlConformanceEnum.LENIENT)
         .ok();
   }
+
+  /**
+   * Test case for
+   * <a 
href="https://issues.apache.org/jira/browse/CALCITE-5297";>[CALCITE-5297]
+   * Casting dynamic variable twice throws exception</a>.
+   */
+  @Test void testDynamicParameterDoubleCast() {
+    String sql = "SELECT CAST(CAST(? AS INTEGER) AS INTEGER)";

Review Comment:
   [JIRA](https://issues.apache.org/jira/browse/CALCITE-5297) is about Cast 
Integer, then Char (_CAST(CAST(? AS INTEGER) AS CHAR)_), test is for double 
CAST to INTEGER. Is it intentional ?



-- 
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: commits-unsubscr...@calcite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to