Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/20405#discussion_r164250206 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala --- @@ -1216,7 +1216,7 @@ class Dataset[T] private[sql]( */ @scala.annotation.varargs def hint(name: String, parameters: Any*): Dataset[T] = withTypedPlan { - UnresolvedHint(name, parameters, logicalPlan) + UnresolvedHint(name, parameters, planWithBarrier) --- End diff -- I think @viirya has a valid concern. think about ``` val df1 = spark.table("t").select("id") df1.hint("broadcast", "id") ``` We should transform down the plan of `df1`, find the bottom table relation and apply the hint.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org