raminqaf commented on code in PR #27757:
URL: https://github.com/apache/flink/pull/27757#discussion_r2954351742


##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/TemporalTypesTest.scala:
##########
@@ -1181,6 +1181,18 @@ class TemporalTypesTest extends ExpressionTestBase {
     testAllApis(toTimestampLtz(1234, 3), "TO_TIMESTAMP_LTZ(1234, 3)", 
"1970-01-01 08:00:01.234")
     // drop scale
     testAllApis(toTimestampLtz(0.01, 3), "TO_TIMESTAMP_LTZ(0.01, 3)", 
"1970-01-01 08:00:00.000")
+
+    // higher precision: DOUBLE with precision 6
+    testAllApis(
+      toTimestampLtz(1000000.5.cast(DataTypes.DOUBLE()), 6),
+      "TO_TIMESTAMP_LTZ(CAST(1000000.5 AS DOUBLE), 6)",
+      "1970-01-01 08:00:01.000000")
+
+    // higher precision: DECIMAL with precision 9
+    testAllApis(
+      toTimestampLtz(1234567890L.cast(DataTypes.DECIMAL(38, 18)), 9),
+      "TO_TIMESTAMP_LTZ(1234567890, 9)",
+      "1970-01-01 08:00:01.234567890")

Review Comment:
   Reverted the chagnes



-- 
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]

Reply via email to