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: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/functions/SystemFunction.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -185,15 +185,15 @@ public static Object castAs(List<Object> args) {
185
185
} else {
186
186
thrownewTransformException(
187
187
CommonErrorCodeDeprecated.UNSUPPORTED_OPERATION,
188
-
String.format("Unsupported CAST AS Boolean: %s", v2));
188
+
String.format("Unsupported CAST AS Boolean: %s", v1));
189
189
}
190
190
} elseif (v1instanceofString) {
191
191
if (Arrays.asList("TRUE", "FALSE").contains(v1.toString().toUpperCase())) {
192
192
returnBoolean.parseBoolean(v1.toString());
193
193
} else {
194
194
thrownewTransformException(
195
195
CommonErrorCodeDeprecated.UNSUPPORTED_OPERATION,
196
-
String.format("Unsupported CAST AS Boolean: %s", v2));
196
+
String.format("Unsupported CAST AS Boolean: %s", v1));
0 commit comments