title: Spark Dataset Error: Both sides of this join are outside the broadcasting threshold and computing it could be prohibitively expensive
body: <p>I am using Spark2.0.2 in local mode. I have a join which join two datasets.</p>
  
  <p>It is quite fast when using spark sql or dataframe API (untyped Dataset[Row] ).
  But when I use typed Dataset API, I get the error below.</p>
  
  <p>Exception in thread "main" org.apache.spark.sql.AnalysisException: Both sides of this join are outside the broadcasting threshold and computing it could be prohibitively expensive. To explicitly enable it, please set spark.sql.crossJoin.enabled = true;</p>
  
  <p>I increase "spark.sql.conf.autoBroadcastJoinThreshold", but it is still the same error. And then I set "spark.sql.crossJoin.enabled" to "true", it works but takes very long time to complete.</p>
  
  <p>I didn't do any repartition. The source are two parquets.</p>
  
  <p>Any idea?</p>