You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2019/09/15 11:57:00 UTC
[jira] [Resolved] (SPARK-29090) Invalid patterns of seconds
fractions in functions comments
[ https://issues.apache.org/jira/browse/SPARK-29090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Gekk resolved SPARK-29090.
--------------------------------
Resolution: Won't Fix
> Invalid patterns of seconds fractions in functions comments
> -----------------------------------------------------------
>
> Key: SPARK-29090
> URL: https://issues.apache.org/jira/browse/SPARK-29090
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Maxim Gekk
> Priority: Trivial
>
> The comment for the date_sub() functions points out the `yyyy-MM-dd HH:mm:ss.SSSS` pattern as valid one: [https://github.com/apache/spark/blob/aafce7ebffe1acd8f6022f208beaa9ec6c9f7592/sql/core/src/main/scala/org/apache/spark/sql/functions.scala#L2678]
> but the function does not accept 4 digits in the second fraction:
> {code}
> scala> spark.sql("""select date_sub("2019-09-15 14:35.00.1234")""").show
> org.apache.spark.sql.AnalysisException: Invalid number of arguments for function date_sub. Expected: 2; Found: 1; line 1 pos 7
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org