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: [email protected]
For additional commands, e-mail: [email protected]