raminqaf commented on PR #27793:
URL: https://github.com/apache/flink/pull/27793#issuecomment-7306286016

   > there might be a potential breaking change
   > 
   > SELECT  TO_TIMESTAMP('2023-01-01 12:30:00.12348', 'yyyy-MM-dd 
HH:mm:ss.SSSS')
   > before the change it is type `TIMESTAMP(3)`, after `TIMESTAMP(4)` do we 
have a restore test with compiled plans for such case? What will happen?
   
   I compiled `INSERT INTO snk SELECT TO_TIMESTAMP(s, 'yyyy-MM-dd 
HH:mm:ss.SSSS') FROM src` on master, where the plan stores the call as 
`$TO_TIMESTAMP$1` with type `TIMESTAMP(3)`. Restored on this branch, the plan 
returns `TIMESTAMP(3) 2023-01-01 12:30:00.123`. `ToTimestampFunction` takes its 
precision from the declared output type, and that type comes from the plan. 
Only a new compilation gives `TIMESTAMP(4)`.


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