comphead commented on issue #3881:
URL:
https://github.com/apache/datafusion-comet/issues/3881#issuecomment-4513689081
```
spark.sql("CREATE TEMP VIEW t1 AS SELECT * FROM VALUES (1,5),(2,-1),(3,0)
AS t1(id,v)")
spark.sql("CREATE TEMP VIEW t2 AS SELECT * FROM VALUES (1),(3) AS t2(id)")
spark.sql("SELECT * FROM t1 WHERE v > 0 OR EXISTS (SELECT 1 FROM t2 WHERE
t2.id = t1.id)")
.explain(true)
== Physical Plan ==
AdaptiveSparkPlan isFinalPlan=false
+- Project [id#41, v#42]
+- Filter ((v#42 > 0) OR exists#50)
+- BroadcastHashJoin [id#41], [id#45], ExistenceJoin(exists#50),
BuildRight, false
:- LocalTableScan [id#41, v#42]
+- BroadcastExchange HashedRelationBroadcastMode(List(cast(input[0,
int, false] as bigint)),false), [plan_id=123]
+- Project [id#45]
+- LocalTableScan [1#47, id#45]
```
In DataFusion potentially we can use `LeftMark/RightMark` joins, however we
need to check if those follow full three-valued mark semantics
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]