Lim Qing Wei created FLINK-28365: ------------------------------------ Summary: TO_TIMESTAMP lose precision beyond seconds Key: FLINK-28365 URL: https://issues.apache.org/jira/browse/FLINK-28365 Project: Flink Issue Type: Bug Components: Table SQL / Planner Affects Versions: 1.16.0, 1.15 Reporter: Lim Qing Wei Fix For: 1.16.0, 1.15
The TO_TIMESTAMP function in Flink SQL seems to have a regression. It loses the precision after seconds, for example {code:java} TO_TIMESTAMP('2020-01-01 15:35:00.123456'){code} returns 2020-01-01 15:35:00.123 in the resulting SQL AST, note that the last 3 digit are missing.{color:#067d17} {color} I think this started in 1.15.x, because I have code in 1.14 that preserve the precision as I expect. Do you agree this is a bug? PS: The documentation isn't very comprehensive: https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/functions/systemfunctions/ -- This message was sent by Atlassian Jira (v8.20.10#820010)