You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2025/07/11 18:16:00 UTC

[jira] [Created] (SPARK-52770) Support `TIME` type in `toConnectProtoType`

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org