GitHub user viirya opened a pull request: https://github.com/apache/spark/pull/12599
[SPARK-14838][SQL] Skip automatically broadcast a plan when it contains ObjectProducer ## What changes were proposed in this pull request? In `SparkStrategies`, `CanBroadcast` will determine whether to broadcast a plan by the plan's estimated size. For any plan with `ObjectProducer` interface, its output is a `ObjectType`. As we can't estimate the size of `ObjectType`, we throw an `UnsupportedOperationException` if trying to do that. It causes the [failure](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56533/consoleFull). To fix this, we should skip broadcasting a plan when it contains `ObjectProducer`. ## How was this patch tested? Test will added later. You can merge this pull request into a Git repository by running: $ git pull https://github.com/viirya/spark-1 skip-broadcast-objectproducer Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12599.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 #12599 ---- commit 84207c7aa08ae2e6d7d97a22b64497a3e1604ac8 Author: Liang-Chi Hsieh <sim...@tw.ibm.com> Date: 2016-04-22T04:20:34Z Skip automatically broadcast a plan when it contains ObjectProducer. ---- --- 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