GitHub user viirya opened a pull request: https://github.com/apache/spark/pull/5014
[SPARK-6322][SQL] CTAS should consider the case where no file format or storage handler is given When creating `CreateTableAsSelect` in `HiveQl`, it doesn't consider the case where no file format or storage handler is given. So later in `CreateTables`, one of `CreateTableAsSelect` cases will never be run. The two `CreateTableAsSelect` cases are basically the same codes except for checking `CreateTableDesc`. This pr fixes this issue. You can merge this pull request into a Git repository by running: $ git pull https://github.com/viirya/spark-1 fix_hive_ctas Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/5014.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 #5014 ---- commit a8d3756b88414e1c85acb2a0c6ce6abe7c894a58 Author: Liang-Chi Hsieh <vii...@gmail.com> Date: 2015-03-01T11:39:54Z Combine two CreateTableAsSelect case blocks. commit d3c9f6b58f27eaf692f2260cd0ef4346f4e95496 Author: Liang-Chi Hsieh <vii...@gmail.com> Date: 2015-03-13T14:41:58Z Merge remote-tracking branch 'upstream/master' into fix_hive_ctas ---- --- 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