[ 
https://issues.apache.org/jira/browse/FLINK-36358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

lincoln lee reassigned FLINK-36358:
-----------------------------------

    Assignee: Jacky Lau

> to_timestamp result is not correct when the string precision is long than 
> date format
> -------------------------------------------------------------------------------------
>
>                 Key: FLINK-36358
>                 URL: https://issues.apache.org/jira/browse/FLINK-36358
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.17.0, 1.18.0, 1.19.0
>            Reporter: Jacky Lau
>            Assignee: Jacky Lau
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0-preview
>
>
> tEnv.executeSql("select to_timestamp('2017-09-15 00:00:00.12345', 'yyyy-MM-dd 
> HH:mm:ss.SSS')").print()  
> 2017-09-15 00:00:00.123  correct
>  
> tEnv.executeSql("select cast(to_timestamp('2017-09-15 00:00:00.12345', 
> 'yyyy-MM-dd HH:mm:ss.SSS') as string)").print() 
> 2017-09-15 00:00:00.12345 not  correct



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to