[ https://issues.apache.org/jira/browse/SPARK-30392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17005924#comment-17005924 ]
Ankit Raj Boudh edited comment on SPARK-30392 at 12/31/19 4:44 AM: ------------------------------------------------------------------- [~avanname] , changes are already present in below branches ([SPARK-24378][SQL] Fix date_trunc function incorrect examples) branch-2.3 :- ------------------ [https://github.com/apache/spark/blob/75cc3b2da9ee0b51ecf0f13169f2b634e36a60c4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala#L1438] branch-2.4 :- ------------------ [https://github.com/apache/spark/blob/db32408f2a9295e4053dd3a1ebf8ae013557ff96/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala#L1552] but here it's not updated [https://spark.apache.org/docs/2.3.0/api/sql/index.html] cc [~srowen] ,[@cloud-fan|https://github.com/cloud-fan] and [@HyukjinKwon , please check.|https://github.com/HyukjinKwon] was (Author: ankitraj): [~avanname] , changes are already present in below branches. branch-2.3 :- ------------------ [https://github.com/apache/spark/blob/75cc3b2da9ee0b51ecf0f13169f2b634e36a60c4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala#L1438] branch-2.4 :- ------------------ [https://github.com/apache/spark/blob/db32408f2a9295e4053dd3a1ebf8ae013557ff96/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala#L1552] but here it's not updated [https://spark.apache.org/docs/2.3.0/api/sql/index.html] cc [~srowen] ,[@cloud-fan|https://github.com/cloud-fan] and [@HyukjinKwon , please check.|https://github.com/HyukjinKwon] > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org