GitHub user Sephiroth-Lin opened a pull request:

    https://github.com/apache/spark/pull/13561

    [SPARK-15824][SQL] Run 'with ... insert ... select' failed when use spark 
thriftserver

    ## What changes were proposed in this pull request?
    
    Dataset.collect will call withNewExecutionId and 
InsertIntoHadoopFsRelationCommand also will call withNewExecutionId, then for 
below SQL will cause IllegalArgumentException(spark.sql.execution.id is already 
set")
    ```sql
    create table src(k int, v int);
    create table src_parquet(k int, v int);
    with v as (select 1, 2) insert into table src_parquet from src;
    ```
    ## How was this patch tested?
    
    Will add UT later


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Sephiroth-Lin/spark SPARK-15824

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13561.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13561
    
----
commit 0f66322b748a95bfa4a122c832680c260f8da843
Author: Sephiroth-Lin <[email protected]>
Date:   2016-06-08T12:19:14Z

    Run 'with ... insert ... select' failed when use spark thriftserver

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to