You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/01/13 16:23:26 UTC

[jira] [Commented] (SPARK-19196) Explicitly prevent Insert into View or Create View As Insert

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

Sean Owen commented on SPARK-19196:
-----------------------------------

This JIRA has become corrupted somehow. Could you reopen a new one?

> Explicitly prevent Insert into View or Create View As Insert
> ------------------------------------------------------------
>
>                 Key: SPARK-19196
>                 URL: https://issues.apache.org/jira/browse/SPARK-19196
>             Project: Spark
>          Issue Type: Sub-task
>            Reporter: Jiang Xingbo
>
> Currently we don't explicitly forbid the following behaviors:
> 1. The statement CREATE VIEW AS INSERT INTO throws the following exception from SQLBuilder:
> `java.lang.UnsupportedOperationException: unsupported plan InsertIntoTable MetastoreRelation default, tbl, false, false`;
> 2. The statement INSERT INTO view VALUES throws the following exception from checkAnalysis:
> `Error in query: Inserting into an RDD-based table is not allowed.;;`
> We should check for these behaviors earlier and explicitly prevent them.



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

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