You can also check which execution strategy is being used using explain:
scala> mydf.explain
scala> mydf.queryExecution.executedPlan
You can also check which execution strategy is being used using explain:
scala> mydf.explain
scala> mydf.queryExecution.executedPlan