GitHub user Parth-Brahmbhatt opened a pull request: https://github.com/apache/spark/pull/13150
[SPARK-15365] [SQL]: When table size statistics are not available from metastore, we should fallback to HDFS ## What changes were proposed in this pull request? Currently if a table is used in join operation we rely on Metastore returned size to calculate if we can convert the operation to Broadcast join. This optimization only kicks in for table's that have the statistics available in metastore. Hive generally rolls over to HDFS if the statistics are not available directly from metastore and this seems like a reasonable choice to adopt given the optimization benefit of using broadcast joins. ## How was this patch tested? I have executed queries locally to test. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Parth-Brahmbhatt/spark SPARK-15365 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13150.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 #13150 ---- commit 702781d188846faceca9cd529984b21fa5b0d724 Author: Parth Brahmbhatt <pbrahmbh...@netflix.com> Date: 2016-05-17T17:29:10Z [SPARK-15365] [SQL]: When table size statistics are not available from metastore, fall back to HDFS. ---- --- 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