You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/operations/SqlNodeToCallOperationTest.java
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -153,10 +153,14 @@ void testCallStatement() {
153
153
154
154
// should throw exception when the expression argument can't be reduced
155
155
// to literal
156
-
// assertThatThrownBy(() -> parse("call `system`.row_result(cast((1.2 + 2.4) as decimal))"))
157
-
// .hasMessageContaining(
158
-
// "The argument at position 0 CAST(CAST(1.2 + 2.4 AS DECIMAL) AS DECIMAL(10, 2))
159
-
// for calling procedure can't be converted to literal.");
156
+
assertThatThrownBy(
157
+
() ->
158
+
parse(
159
+
"call `system`.row_result(cast((1.2 + nullif(3, 2.4)) as decimal))"))
160
+
.hasMessageContaining(
161
+
"The argument at position 0 "
162
+
+ "CAST(CAST(1.2 + CASE WHEN 3 = 2.4 THEN NULL ELSE 3 END AS DECIMAL) AS DECIMAL(10, 2)) "
163
+
+ "for calling procedure can't be converted to literal.");
0 commit comments