You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/06/19 18:37:00 UTC

[jira] [Commented] (SPARK-35827) Show proper erro message when update column types to year-month/day-time interval

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

Apache Spark commented on SPARK-35827:
--------------------------------------

User 'sarutak' has created a pull request for this issue:
https://github.com/apache/spark/pull/32978

> Show proper erro message when update column types to year-month/day-time interval
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-35827
>                 URL: https://issues.apache.org/jira/browse/SPARK-35827
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Kousuke Saruta
>            Assignee: Kousuke Saruta
>            Priority: Major
>
> Updating column types to interval types are prohibited for V2 source tables.
> So, if we attempt to update the type of a column to the conventional interval type, an error message like "Error in query: Cannot update <table> field <column> to interval type;".
> But, for year-month/day-time interval types, another error message like "Error in query: Cannot update <table> field <column>:<type> cannot be cast to interval year;"
> It's not consistent.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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