[jira] [Commented] (SPARK-43485) Confused errors from the DATEADD function
[ https://issues.apache.org/jira/browse/SPARK-43485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17722749#comment-17722749 ] Nikita Awasthi commented on SPARK-43485: User 'MaxGekk' has created a pull request for this issue: https://github.com/apache/spark/pull/41143 > Confused errors from the DATEADD function > - > > Key: SPARK-43485 > URL: https://issues.apache.org/jira/browse/SPARK-43485 > Project: Spark > Issue Type: Bug > Components: SQL >Affects Versions: 3.4.0 >Reporter: Max Gekk >Assignee: Max Gekk >Priority: Major > Fix For: 3.5.0 > > > The code example portraits the issue: > {code:sql} > spark-sql (default)> select dateadd('MONTH', 1, date'2023-05-11'); > [WRONG_NUM_ARGS.WITHOUT_SUGGESTION] The `dateadd` requires 2 parameters but > the actual number is 3. Please, refer to > 'https://spark.apache.org/docs/latest/sql-ref-functions.html' for a fix.; > line 1 pos 7 > {code} > The error says about number of arguments passed to DATEADD but the issue is > about the type of the first argument. -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-43485) Confused errors from the DATEADD function
[ https://issues.apache.org/jira/browse/SPARK-43485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17722351#comment-17722351 ] BingKun Pan commented on SPARK-43485: - Can I do it ? [~maxgekk] > Confused errors from the DATEADD function > - > > Key: SPARK-43485 > URL: https://issues.apache.org/jira/browse/SPARK-43485 > Project: Spark > Issue Type: Bug > Components: SQL >Affects Versions: 3.4.0 >Reporter: Max Gekk >Assignee: Max Gekk >Priority: Major > > The code example portraits the issue: > {code:sql} > spark-sql (default)> select dateadd('MONTH', 1, date'2023-05-11'); > [WRONG_NUM_ARGS.WITHOUT_SUGGESTION] The `dateadd` requires 2 parameters but > the actual number is 3. Please, refer to > 'https://spark.apache.org/docs/latest/sql-ref-functions.html' for a fix.; > line 1 pos 7 > {code} > The error says about number of arguments passed to DATEADD but the issue is > about the type of the first argument. -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org