You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Leonard Xu (Jira)" <ji...@apache.org> on 2021/03/26 03:31:00 UTC

[jira] [Created] (FLINK-21984) Change precision argument from optional to required in TO_TIMESTAMP_LTZ(numeric, precision)

Leonard Xu created FLINK-21984:
----------------------------------

             Summary: Change precision argument from optional to required in TO_TIMESTAMP_LTZ(numeric, precision) 
                 Key: FLINK-21984
                 URL: https://issues.apache.org/jira/browse/FLINK-21984
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / Planner
    Affects Versions: 1.13.0
            Reporter: Leonard Xu


To avoid the confusing the numeric value is in second or millisecond, we'd better set the precision argument to required. The background is that `LocalZonedTimestampType` always treats `Integer` conversion class as second, treats `Long` as millisecond. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)