aiwenmo commented on code in PR #3449:
URL: https://github.com/apache/flink-cdc/pull/3449#discussion_r1705026303
##########
flink-cdc-runtime/src/test/java/org/apache/flink/cdc/runtime/parser/TransformParserTest.java:
##########
@@ -292,6 +292,9 @@ public void testTranslateFilterToJaninoExpression() {
testFilterExpression("cast(null as decimal)", "castToBigDecimal(null,
10, 0)");
testFilterExpression("cast(null as char)", "castToString(null)");
testFilterExpression("cast(null as varchar)", "castToString(null)");
+ testFilterExpression(
+ "cast(CURRENT_TIMESTAMP as TIMESTAMP)",
"castToTimestamp(__time_zone__)");
+ testFilterExpression("cast(dt as TIMESTAMP)",
"castToTimestamp(__time_zone__)");
Review Comment:
Expect value may be incorrect.
```
castToTimestamp(currentTimestamp(__epoch_time__), __time_zone__)
castToTimestamp(dt, __time_zone__)
```
--
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]