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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Shang Yuanchun (Jira)
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)