zhangyue-hashdata commented on PR #724:
URL: https://github.com/apache/cloudberry/pull/724#issuecomment-2520535244

   > ```
   >  explain analyze
   > SELECT count(t1.c3) FROM t1, t3 WHERE t1.c1 = t3.c1 ;
   >                                                               QUERY PLAN
   > 
   > 
-----------------------------------------------------------------------------------------
   > ----------------------------------------------
   >  Finalize Aggregate  (cost=1700.07..1700.08 rows=1 width=8) (actual 
time=32119.566..32119
   > .571 rows=1 loops=1)
   >    ->  Gather Motion 3:1  (slice1; segments: 3)  (cost=1700.02..1700.07 
rows=3 width=8) (
   > actual time=30.967..32119.550 rows=3 loops=1)
   >          ->  Partial Aggregate  (cost=1700.02..1700.03 rows=1 width=8) 
(actual time=32119
   > .131..32119.135 rows=1 loops=1)
   >                ->  Hash Join  (cost=771.01..1616.68 rows=33334 width=4) 
(actual time=14.0
   > 59..32116.962 rows=33462 loops=1)
   >                      Hash Cond: (t3.c1 = t1.c1)
   >                      Extra Text: (seg0)   Hash chain length 1.0 avg, 3 
max, using 32439 o
   > f 524288 buckets.
   >                      ->  Seq Scan on t3  (cost=0.00..387.34 rows=33334 
width=4) (actual t
   > ime=0.028..32089.490 rows=33462 loops=1)
   >                      ->  Hash  (cost=354.34..354.34 rows=33334 width=8) 
(actual time=13.2
   > 57..13.259 rows=33462 loops=1)
   >                            Buckets: 524288  Batches: 1  Memory Usage: 
5404kB
   >                            ->  Seq Scan on t1  (cost=0.00..354.34 
rows=33334 width=8) (ac
   > tual time=0.180..4.877 rows=33462 loops=1)
   >  Planning Time: 0.227 ms
   > ```
   > 
   > runtime_filter has been pushed down to t3 table seqscan, but 'explain 
analyze' doesn't print them out.
   > 
   > ```
   > \d t1
   >                  Table "public.t1"
   >  Column |  Type   | Collation | Nullable | Default
   > --------+---------+-----------+----------+---------
   >  c1     | integer |           |          |
   >  c2     | integer |           |          |
   >  c3     | integer |           |          |
   >  c4     | integer |           |          |
   >  c5     | integer |           |          |
   > Checksum: t
   > Indexes:
   >     "t1_c2" btree (c2)
   > Distributed by: (c1)
   > ```
   > 
   > ```
   >  \d t3
   >                  Table "public.t3"
   >  Column |  Type   | Collation | Nullable | Default
   > --------+---------+-----------+----------+---------
   >  c1     | integer |           |          |
   >  c2     | integer |           |          |
   >  c3     | integer |           |          |
   >  c4     | integer |           |          |
   >  c5     | integer |           |          |
   > Distributed by: (c1)
   > ```
   
   Thanks for your test case. Based on these, I rewrote code to ensure that 
debug info are always displayed even when the number of filtered rows is zero. 
And add the test case into gp_runtime_filter.sql too.
   fix in 
https://github.com/apache/cloudberry/commit/98dac6dfc7d5e44e111aa16bdf5948d07ee2eb00


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

Reply via email to