You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/01 15:09:00 UTC
[jira] [Commented] (SPARK-23906) Add UDF trunc(numeric)
[ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org