You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/12/16 02:30:08 UTC
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #30775: [SPARK-33778][SQL] Allow typesafe join for LeftSemi and LeftAnti
AngersZhuuuu commented on a change in pull request #30775:
URL: https://github.com/apache/spark/pull/30775#discussion_r543841562
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
##########
@@ -1240,6 +1240,40 @@ class Dataset[T] private[sql](
joinWith(other, condition, "inner")
}
+ /**
+ * Joins this Dataset returning value of left where `condition` evaluates to true.
+ *
+ * This is similar to the relation `join` function with one important difference in the
+ * result schema. Since `joinPartial` preserves objects present on left side of the join, the
+ * result schema is similarly nested into one column names `_1`.
+ *
+ * This type of join can be useful both for preserving type-safety with the original object
+ * types as well as working with relational data where either side of the join has column
+ * names in common.
+ *
+ * @param other Right side of the join.
+ * @param condition Join expression.
+ * @param joinType Type of join to perform. Default `inner`. Must be one of:
Review comment:
> Should we rephrase this comment since inner join is not supported? Like the default type can be probably `LeftSemi` or `LeftAnti` since `Inner` is not supported.
Sorry, forgot remove the `Default inner`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org