mingmwang commented on PR #5907:
URL: 
https://github.com/apache/arrow-datafusion/pull/5907#issuecomment-1513345216

   SparkSQL's plan
   
   ```
   == Optimized Logical Plan ==
   Filter isnotnull(scalar-subquery#44687821 []), Statistics(sizeInBytes=1.0 B)
   :  +- GlobalLimit 1
   :     +- LocalLimit 1
   :        +- Project [1 AS col#44687836]
   :           +- Filter (isnotnull(t2_id#44684191) AND (t2_id#44684191 > 0))
   :              +- Relation access_views.t2[t2_id#44684191,t2_name#44684192] 
parquet, Statistics(sizeInBytes=0.0 B)
   +- Relation access_views.t1[t1_id#44683269,t1_name#44683270] parquet, 
Statistics(sizeInBytes=0.0 B)
   ```
   
   PG:
   
   ```
   QUERY PLAN
   Result (cost=0.13..13.33 rows=320 width=222)
   One-Time Filter: $0
   InitPlan 1 (returns $0)
   -> Seq Scan on t2 (cost=0.00..14.00 rows=107 width=0)
   Filter: (id > 0)
   -> Seq Scan on t1 (cost=0.13..13.33 rows=320 width=222)
   
   ```
   


-- 
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]

Reply via email to