Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27790 Support ANSI SQL INTERVAL types
  3. SPARK-35827

Show proper error message when update column types to year-month/day-time interval

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      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.

      Attachments

        Activity

          People

            apachespark Apache Spark
            sarutak Kousuke Saruta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: