You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/07/24 06:50:00 UTC

[jira] [Commented] (SPARK-28494) Expose CalendarIntervalType and CalendarInterval in Spark

    [ https://issues.apache.org/jira/browse/SPARK-28494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891635#comment-16891635 ] 

Yuming Wang commented on SPARK-28494:
-------------------------------------

Do we need to support save interval type to table?
{noformat}
spark-sql> create table t as select interval 3 month 1 hour as i;
19/07/23 23:45:09 ERROR SparkSQLDriver: Failed in [create table t as select interval 3 month 1 hour as i]
org.apache.spark.SparkException: Cannot recognize hive type string: calendarinterval
	at org.apache.spark.sql.hive.client.HiveClientImpl$.getSparkSQLDataType(HiveClientImpl.scala:967)
	at org.apache.spark.sql.hive.client.HiveClientImpl$.$anonfun$verifyColumnDataType$1(HiveClientImpl.scala:989)
{noformat}

> Expose CalendarIntervalType and CalendarInterval in Spark
> ---------------------------------------------------------
>
>                 Key: SPARK-28494
>                 URL: https://issues.apache.org/jira/browse/SPARK-28494
>             Project: Spark
>          Issue Type: Umbrella
>          Components: PySpark, SparkR, SQL
>    Affects Versions: 3.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>
> CalendarIntervalType and CalendarInterval are rather internal and private for now and are not allowed to be used in some places, for instance, UDFs.
> This Jira targets to officially support this type.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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