[jira] [Created] (FLINK-11296) Support truncate in TableAPI

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

[jira] [Created] (FLINK-11296) Support truncate in TableAPI

Shang Yuanchun (Jira)
xuqianjin created FLINK-11296:
---------------------------------

             Summary: Support truncate in TableAPI
                 Key: FLINK-11296
                 URL: https://issues.apache.org/jira/browse/FLINK-11296
             Project: Flink
          Issue Type: Improvement
    Affects Versions: 1.7.1
            Reporter: xuqianjin
            Assignee: xuqianjin


Add {{truncate}} support in TableAPI, Add support as follows:
||expression||Expect the result||
|truncate(cast(42.345 as decimal(2, 3)), 2)|42.34|
|truncate(42, -1)|40|
|truncate(42.324)|42|



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)