[ 
https://issues.apache.org/jira/browse/SPARK-23906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853733#comment-16853733
 ] 

Yuming Wang commented on SPARK-23906:
-------------------------------------

PostgreSQL has two functions: {{trunc}} and {{date_trunc}}. Maybe we need to 
merge {{TruncDate}} and {{TruncTimestamp}} into date_trunc and make {{trunc}} 
to support truncate numbers.

 

[https://www.postgresql.org/docs/11/functions-math.html]
 
[https://www.postgresql.org/docs/11/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC]

 

 

> Add UDF trunc(numeric)
> ----------------------
>
>                 Key: SPARK-23906
>                 URL: https://issues.apache.org/jira/browse/SPARK-23906
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Xiao Li
>            Assignee: Yuming Wang
>            Priority: Major
>
> https://issues.apache.org/jira/browse/HIVE-14582
> We already have {{date_trunc}} and {{trunc}}. Need to discuss whether we 
> should introduce a new name or reuse {{trunc}} for truncating numbers.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to