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

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

Kousuke Saruta created SPARK-35827:
--------------------------------------

             Summary: 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


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