zhangfengcdt commented on code in PR #2831:
URL: https://github.com/apache/sedona/pull/2831#discussion_r3111961819
##########
spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/strategy/join/JoinQueryDetector.scala:
##########
@@ -209,6 +199,16 @@ class JoinQueryDetector(sparkSession: SparkSession)
extends SparkStrategy {
val queryDetection: Option[JoinQueryDetection] = condition.flatMap {
case joinConditionMatcher(predicate, extraCondition) =>
predicate match {
+ case ST_Contains(Seq(leftShape, rightShape)) =>
+ Some(
+ JoinQueryDetection(
+ left,
+ right,
+ leftShape,
+ rightShape,
+ SpatialPredicate.CONTAINS,
+ false,
+ extraCondition))
Review Comment:
The spatial join on geography type/udfs will be a follow up pr, so we will
just fall back to spark (sedona)'s default here for now.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]