Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-31834

Improve error message for incompatible data types

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      None

      Description

      spark-sql> create table SPARK_31834(a int) using parquet;
      spark-sql> insert into SPARK_31834 select '1';
      Error in query: Cannot write incompatible data to table '`default`.`spark_31834`':
      - Cannot safely cast 'a': StringType to IntegerType;
      spark-sql>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lipzhu Zhu, Lipeng
                Reporter:
                yumwang Yuming Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: