You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/08/05 11:04:00 UTC

[jira] [Updated] (SPARK-36428) the 'seconds' parameter of 'make_timestamp' should accept integer type

     [ https://issues.apache.org/jira/browse/SPARK-36428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan updated SPARK-36428:
--------------------------------
    Summary: the 'seconds' parameter of 'make_timestamp' should accept integer type  (was: the 'second' parameter of 'make_timestamp' should accept integer type)

> the 'seconds' parameter of 'make_timestamp' should accept integer type
> ----------------------------------------------------------------------
>
>                 Key: SPARK-36428
>                 URL: https://issues.apache.org/jira/browse/SPARK-36428
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Wenchen Fan
>            Priority: Major
>
> With ANSI mode, {{SELECT make_timestamp(1, 1, 1, 1, 1, 1)}} fails, because the 'seconds' parameter needs to be of type DECIMAL(8,6), and INT can't be implicitly casted to DECIMAL(8,6) under ANSI mode.
> We should update the function {{make_timestamp}} to allow integer type 'seconds'



--
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