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

Improve error message for incompatible data types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • 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

              lipzhu Zhu, Lipeng
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: