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

Fixed Insert Failure To Data Source Tables when the Schema has the Comment Field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.0.3, 2.1.0
    • SQL
    • None

    Description

      CREATE TABLE tab1(col1 int COMMENT 'a', col2 int) USING parquet
      INSERT INTO TABLE tab1 SELECT 1, 2
      

      The insert attempt will fail if the target table has a column with comments. The error is strange to the external users:

      assertion failed: No plan for InsertIntoTable Relation[col1#15,col2#16] parquet, false, false
      +- Project [1 AS col1#19, 2 AS col2#20]
         +- OneRowRelation$
      

      Attachments

        Activity

          People

            smilegator Xiao Li
            smilegator Xiao Li
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: