You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2019/12/31 15:33:00 UTC
[jira] [Resolved] (SPARK-30392) Documentation for the date_trunc
function is incorrect
[ https://issues.apache.org/jira/browse/SPARK-30392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen resolved SPARK-30392.
----------------------------------
Resolution: Not A Problem
Yes, this is being reported against 2.3.0 apparently
> Documentation for the date_trunc function is incorrect
> ------------------------------------------------------
>
> Key: SPARK-30392
> URL: https://issues.apache.org/jira/browse/SPARK-30392
> Project: Spark
> Issue Type: Documentation
> Components: SQL
> Affects Versions: 2.4.3
> Reporter: Ashley
> Priority: Minor
> Attachments: Date_trunc.PNG
>
>
> The documentation for the date_trunc function includes a few sample SELECT statements to show how the function works: [https://spark.apache.org/docs/2.3.0/api/sql/#date_trunc]
> In the sample SELECT statements, the inputs to the function are swapped:
> *The docs show:* SELECT date_trunc('2015-03-05T09:32:05.359', 'YEAR');
> *The docs _should_ show:* SELECT date_trunc('YEAR', '2015-03-05T09:32:05.359');
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org