You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2022/03/17 06:31:00 UTC

[jira] [Created] (SPARK-38583) to_timestamp should allow numeric types

Hyukjin Kwon created SPARK-38583:
------------------------------------

             Summary: to_timestamp should allow numeric types
                 Key: SPARK-38583
                 URL: https://issues.apache.org/jira/browse/SPARK-38583
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: Hyukjin Kwon


SPARK-38240 mistakenly disallowed numeric type at to_timestamp. We should allow it back:

{code}
spark.range(1).selectExpr("to_timestamp(id)").show()
{code}


**Before**

{code}
+-------------------+
|   to_timestamp(id)|
+-------------------+
|1970-01-01 09:00:00|
+-------------------+
{code}


**After**

{code}
+-----------------+
| to_timestamp(id)|
+-----------------+
|             null|
+-----------------+
{code}




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org