GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/14048
[SPARK-16370][SQL] Union queries with side effects should be executed eagerly ## What changes were proposed in this pull request? Currently, some queries having side effects like `Command`, `InsertIntoTable`, and `CreateTableUsingAsSelect` are executed eagerly. However, for `UNION` queries, they are executed only in `UNION ALL` queries with all children having side effects. This issue executes them eagerly for both `UNION` and `UNION ALL` queries if one of their children has side effects. ## How was this patch tested? Pass the Jenkins tests with a new testcase. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-16370 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14048.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 #14048 ---- commit e59c3d12a945575776f99f0766adb54a90bd2cf1 Author: Dongjoon Hyun <dongj...@apache.org> Date: 2016-07-04T21:42:32Z [SPARK-16370][SQL] Union queries with side effects should be executed eagerly ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org