Skip to content

Commit a43d5bb

Browse files
committed
update
1 parent 792065b commit a43d5bb

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

flink-cdc-composer/src/test/java/org/apache/flink/cdc/composer/flink/FlinkPipelineTransformITCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,12 +2737,12 @@ void testTransformErrorMessage() {
27372737
.cause()
27382738
.isExactlyInstanceOf(FlinkRuntimeException.class)
27392739
.hasMessage(
2740-
"Failed to compile expression TransformExpressionKey{expression='"
2740+
"Failed to compile expression TransformExpressionKey{originalExpression='id1 > 0', expression='"
27412741
+ JaninoCompiler.LOAD_MODULES_EXPRESSION
27422742
+ "greaterThan($0, 0)', argumentNames=[__time_zone__, __epoch_time__], argumentClasses=[class java.lang.String, class java.lang.Long], returnClass=class java.lang.Boolean, columnNameMap={id1=$0}}")
27432743
.cause()
27442744
.hasMessageContaining(
2745-
"Expression: "
2745+
"Compiled expression: "
27462746
+ JaninoCompiler.LOAD_MODULES_EXPRESSION
27472747
+ "greaterThan($0, 0)")
27482748
.hasMessageContaining("Column name map: {$0 -> id1}")

flink-cdc-runtime/src/test/java/org/apache/flink/cdc/runtime/operators/transform/PostTransformOperatorTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,13 +2767,12 @@ void testCastErrorTransform() throws Exception {
27672767
+ "\tcolumns={`col1` STRING NOT NULL,`castInt` INT,`castBoolean` BOOLEAN,`castTinyint` TINYINT,`castSmallint` SMALLINT,`castBigint` BIGINT,`castFloat` FLOAT,`castDouble` DOUBLE,`castChar` STRING,`castVarchar` STRING,`castDecimal` DECIMAL(4, 2),`castTimestamp` TIMESTAMP(3)}, primaryKeys=col1, options=().")
27682768
.cause()
27692769
.hasRootCauseInstanceOf(IllegalArgumentException.class)
2770-
.hasRootCauseMessage("Unable to parse given string as timestamp: 1.0");
2771-
.hasRootCauseInstanceOf(DateTimeParseException.class)
27722770
.hasMessageContaining(
27732771
"Failed to evaluate projection expression `CAST(`TB`.`castFloat` AS TIMESTAMP(3))` for column `castTimestamp` in table `my_company.my_branch.data_cast`.\n"
27742772
+ "\tCompiled expression: castToTimestamp($0, __time_zone__)\n"
27752773
+ "\tColumn name map: {$0 -> castFloat}")
2776-
.hasRootCauseMessage("Text '1.0' could not be parsed at index 0");
2774+
.hasRootCauseMessage("Unable to parse given string as timestamp: 1.0");
2775+
27772776
transformFunctionEventEventOperatorTestHarness.close();
27782777
}
27792778

0 commit comments

Comments
 (0)