GitHub user sirpkt opened a pull request: https://github.com/apache/spark/pull/8411
[SPARK-10216][SQL]Avoid creating empty files during overwrite into Hive table with group by query I added check routine at saveAsHiveFile() of InsertIntoHiveTable. It checks whether the given partition has data in it or not and creates/writes file only when it actually has data. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sirpkt/spark SPARK-10216 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/8411.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 #8411 ---- commit 80184556a48b22793ef2bdf991595cc845a9aded Author: Keuntae Park <sir...@apache.org> Date: 2015-08-25T01:21:22Z do not make empty file when insert overwrite into Hive table commit 46f085a2a13dbea616d2620bf8437e05cf99a573 Author: Keuntae Park <sir...@apache.org> Date: 2015-08-25T01:46:01Z Merge branch 'master' into NoEmptyInsert commit 689252a6d531037ba74d998caca0991ad1798d4c Author: Keuntae Park <sir...@apache.org> Date: 2015-08-25T04:06:04Z Merge remote-tracking branch 'upstream/master' into SPARK-10216 commit e2749d7bc78d6b64644cd7fcbf89fbda27e5688b Author: Keuntae Park <sir...@apache.org> Date: 2015-08-25T04:07:37Z change test name to reflect issue number and name ---- --- 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