[ 
https://issues.apache.org/jira/browse/SPARK-17693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15638786#comment-15638786
 ] 

Apache Spark commented on SPARK-17693:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/15782

> Fixed Insert Failure To Data Source Tables when the Schema has the Comment 
> Field
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-17693
>                 URL: https://issues.apache.org/jira/browse/SPARK-17693
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>             Fix For: 2.1.0
>
>
> {noformat}
> CREATE TABLE tab1(col1 int COMMENT 'a', col2 int) USING parquet
> INSERT INTO TABLE tab1 SELECT 1, 2
> {noformat}
> The insert attempt will fail if the target table has a column with comments. 
> The error is strange to the external users:
> {noformat}
> assertion failed: No plan for InsertIntoTable Relation[col1#15,col2#16] 
> parquet, false, false
> +- Project [1 AS col1#19, 2 AS col2#20]
>    +- OneRowRelation$
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to