Dongjoon Hyun created SPARK-52770:
-------------------------------------

             Summary: Support `TIME` type in `toConnectProtoType`
                 Key: SPARK-52770
                 URL: https://issues.apache.org/jira/browse/SPARK-52770
             Project: Spark
          Issue Type: Sub-task
          Components: Connect, SQL
    Affects Versions: 4.1.0
            Reporter: Dongjoon Hyun


{code}
$ bin/spark-connect-shell --remote sc://localhost:15002
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 4.1.0-preview1
      /_/

Type in expressions to have them evaluated.
Spark connect server version 4.1.0-preview1.
Spark session available as 'spark'.

scala> sql("SELECT TIME '12:13:14'").show()
+---------------+
|TIME '12:13:14'|
+---------------+
|       12:13:14|
+---------------+

scala> sql("SELECT TIME '12:13:14'").collect()
org.apache.spark.SparkException: 
org.apache.spark.sql.connect.common.InvalidPlanInput: [INTERNAL_ERROR] Does not 
support convert time(6) to connect proto types. SQLSTATE: XX000
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to