@@ -5437,67 +5437,61 @@ INSERT INTO pg_statistic VALUES (
54375437 -> Append
54385438 -> Result
54395439 Filter: (((('s'::text) = 's'::text) AND (date_dim.d_year = 2001) AND ((sum(((((store_sales.ss_ext_list_price - store_sales.ss_ext_wholesale_cost) - store_sales.ss_ext_discount_amt) + store_sales.ss_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('s'::text) = 's'::text) AND (date_dim.d_year = 2002)) OR ((('s'::text) = 'c'::text) AND (date_dim.d_year = 2001) AND ((sum(((((store_sales.ss_ext_list_price - store_sales.ss_ext_wholesale_cost) - store_sales.ss_ext_discount_amt) + store_sales.ss_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('s'::text) = 'c'::text) AND (date_dim.d_year = 2002)) OR ((('s'::text) = 'w'::text) AND (date_dim.d_year = 2001) AND ((sum(((((store_sales.ss_ext_list_price - store_sales.ss_ext_wholesale_cost) - store_sales.ss_ext_discount_amt) + store_sales.ss_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('s'::text) = 'w'::text) AND (date_dim.d_year = 2002)))
5440- -> Finalize HashAggregate
5440+ -> HashAggregate
54415441 Group Key: customer.c_customer_id, customer.c_first_name, customer.c_last_name, customer.c_preferred_cust_flag, customer.c_birth_country, customer.c_login, customer.c_email_address, date_dim.d_year
54425442 -> Redistribute Motion 3:3 (slice2; segments: 3)
54435443 Hash Key: customer.c_customer_id, customer.c_first_name, customer.c_last_name, customer.c_preferred_cust_flag, customer.c_birth_country, customer.c_login, customer.c_email_address, date_dim.d_year
5444- -> Streaming Partial HashAggregate
5445- Group Key: customer.c_customer_id, customer.c_first_name, customer.c_last_name, customer.c_preferred_cust_flag, customer.c_birth_country, customer.c_login, customer.c_email_address, date_dim.d_year
5446- -> Hash Join
5447- Hash Cond: (store_sales.ss_customer_sk = customer.c_customer_sk)
5448- -> Redistribute Motion 3:3 (slice3; segments: 3)
5449- Hash Key: store_sales.ss_customer_sk
5450- -> Hash Join
5451- Hash Cond: (store_sales.ss_sold_date_sk = date_dim.d_date_sk)
5452- -> Seq Scan on store_sales
5453- -> Hash
5454- -> Broadcast Motion 3:3 (slice4; segments: 3)
5455- -> Seq Scan on date_dim
5456- Filter: ((d_year = 2001) OR (d_year = 2002))
5457- -> Hash
5458- -> Seq Scan on customer
5444+ -> Hash Join
5445+ Hash Cond: (store_sales.ss_customer_sk = customer.c_customer_sk)
5446+ -> Redistribute Motion 3:3 (slice3; segments: 3)
5447+ Hash Key: store_sales.ss_customer_sk
5448+ -> Hash Join
5449+ Hash Cond: (store_sales.ss_sold_date_sk = date_dim.d_date_sk)
5450+ -> Seq Scan on store_sales
5451+ -> Hash
5452+ -> Broadcast Motion 3:3 (slice4; segments: 3)
5453+ -> Seq Scan on date_dim
5454+ Filter: ((d_year = 2001) OR (d_year = 2002))
5455+ -> Hash
5456+ -> Seq Scan on customer
54595457 -> Result
54605458 Filter: (((('c'::text) = 's'::text) AND (date_dim_1.d_year = 2001) AND ((sum(((((catalog_sales.cs_ext_list_price - catalog_sales.cs_ext_wholesale_cost) - catalog_sales.cs_ext_discount_amt) + catalog_sales.cs_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('c'::text) = 's'::text) AND (date_dim_1.d_year = 2002)) OR ((('c'::text) = 'c'::text) AND (date_dim_1.d_year = 2001) AND ((sum(((((catalog_sales.cs_ext_list_price - catalog_sales.cs_ext_wholesale_cost) - catalog_sales.cs_ext_discount_amt) + catalog_sales.cs_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('c'::text) = 'c'::text) AND (date_dim_1.d_year = 2002)) OR ((('c'::text) = 'w'::text) AND (date_dim_1.d_year = 2001) AND ((sum(((((catalog_sales.cs_ext_list_price - catalog_sales.cs_ext_wholesale_cost) - catalog_sales.cs_ext_discount_amt) + catalog_sales.cs_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('c'::text) = 'w'::text) AND (date_dim_1.d_year = 2002)))
5461- -> Finalize HashAggregate
5459+ -> HashAggregate
54625460 Group Key: customer_1.c_customer_id, customer_1.c_first_name, customer_1.c_last_name, customer_1.c_preferred_cust_flag, customer_1.c_birth_country, customer_1.c_login, customer_1.c_email_address, date_dim_1.d_year
54635461 -> Redistribute Motion 3:3 (slice5; segments: 3)
54645462 Hash Key: customer_1.c_customer_id, customer_1.c_first_name, customer_1.c_last_name, customer_1.c_preferred_cust_flag, customer_1.c_birth_country, customer_1.c_login, customer_1.c_email_address, date_dim_1.d_year
5465- -> Streaming Partial HashAggregate
5466- Group Key: customer_1.c_customer_id, customer_1.c_first_name, customer_1.c_last_name, customer_1.c_preferred_cust_flag, customer_1.c_birth_country, customer_1.c_login, customer_1.c_email_address, date_dim_1.d_year
5467- -> Hash Join
5468- Hash Cond: (catalog_sales.cs_bill_customer_sk = customer_1.c_customer_sk)
5469- -> Redistribute Motion 3:3 (slice6; segments: 3)
5470- Hash Key: catalog_sales.cs_bill_customer_sk
5471- -> Hash Join
5472- Hash Cond: (catalog_sales.cs_sold_date_sk = date_dim_1.d_date_sk)
5473- -> Seq Scan on catalog_sales
5474- -> Hash
5475- -> Broadcast Motion 3:3 (slice7; segments: 3)
5476- -> Seq Scan on date_dim date_dim_1
5477- Filter: ((d_year = 2001) OR (d_year = 2002))
5478- -> Hash
5479- -> Seq Scan on customer customer_1
5463+ -> Hash Join
5464+ Hash Cond: (catalog_sales.cs_bill_customer_sk = customer_1.c_customer_sk)
5465+ -> Redistribute Motion 3:3 (slice6; segments: 3)
5466+ Hash Key: catalog_sales.cs_bill_customer_sk
5467+ -> Hash Join
5468+ Hash Cond: (catalog_sales.cs_sold_date_sk = date_dim_1.d_date_sk)
5469+ -> Seq Scan on catalog_sales
5470+ -> Hash
5471+ -> Broadcast Motion 3:3 (slice7; segments: 3)
5472+ -> Seq Scan on date_dim date_dim_1
5473+ Filter: ((d_year = 2001) OR (d_year = 2002))
5474+ -> Hash
5475+ -> Seq Scan on customer customer_1
54805476 -> Result
54815477 Filter: (((('w'::text) = 's'::text) AND (date_dim_2.d_year = 2001) AND ((sum(((((web_sales.ws_ext_list_price - web_sales.ws_ext_wholesale_cost) - web_sales.ws_ext_discount_amt) + web_sales.ws_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('w'::text) = 's'::text) AND (date_dim_2.d_year = 2002)) OR ((('w'::text) = 'c'::text) AND (date_dim_2.d_year = 2001) AND ((sum(((((web_sales.ws_ext_list_price - web_sales.ws_ext_wholesale_cost) - web_sales.ws_ext_discount_amt) + web_sales.ws_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('w'::text) = 'c'::text) AND (date_dim_2.d_year = 2002)) OR ((('w'::text) = 'w'::text) AND (date_dim_2.d_year = 2001) AND ((sum(((((web_sales.ws_ext_list_price - web_sales.ws_ext_wholesale_cost) - web_sales.ws_ext_discount_amt) + web_sales.ws_ext_sales_price) / '2'::numeric))) > '0'::numeric)) OR ((('w'::text) = 'w'::text) AND (date_dim_2.d_year = 2002)))
5482- -> Finalize HashAggregate
5478+ -> HashAggregate
54835479 Group Key: customer_2.c_customer_id, customer_2.c_first_name, customer_2.c_last_name, customer_2.c_preferred_cust_flag, customer_2.c_birth_country, customer_2.c_login, customer_2.c_email_address, date_dim_2.d_year
54845480 -> Redistribute Motion 3:3 (slice8; segments: 3)
54855481 Hash Key: customer_2.c_customer_id, customer_2.c_first_name, customer_2.c_last_name, customer_2.c_preferred_cust_flag, customer_2.c_birth_country, customer_2.c_login, customer_2.c_email_address, date_dim_2.d_year
5486- -> Streaming Partial HashAggregate
5487- Group Key: customer_2.c_customer_id, customer_2.c_first_name, customer_2.c_last_name, customer_2.c_preferred_cust_flag, customer_2.c_birth_country, customer_2.c_login, customer_2.c_email_address, date_dim_2.d_year
5488- -> Hash Join
5489- Hash Cond: (web_sales.ws_bill_customer_sk = customer_2.c_customer_sk)
5490- -> Redistribute Motion 3:3 (slice9; segments: 3)
5491- Hash Key: web_sales.ws_bill_customer_sk
5492- -> Hash Join
5493- Hash Cond: (web_sales.ws_sold_date_sk = date_dim_2.d_date_sk)
5494- -> Seq Scan on web_sales
5495- -> Hash
5496- -> Broadcast Motion 3:3 (slice10; segments: 3)
5497- -> Seq Scan on date_dim date_dim_2
5498- Filter: ((d_year = 2001) OR (d_year = 2002))
5499- -> Hash
5500- -> Seq Scan on customer customer_2
5482+ -> Hash Join
5483+ Hash Cond: (web_sales.ws_bill_customer_sk = customer_2.c_customer_sk)
5484+ -> Redistribute Motion 3:3 (slice9; segments: 3)
5485+ Hash Key: web_sales.ws_bill_customer_sk
5486+ -> Hash Join
5487+ Hash Cond: (web_sales.ws_sold_date_sk = date_dim_2.d_date_sk)
5488+ -> Seq Scan on web_sales
5489+ -> Hash
5490+ -> Broadcast Motion 3:3 (slice10; segments: 3)
5491+ -> Seq Scan on date_dim date_dim_2
5492+ Filter: ((d_year = 2001) OR (d_year = 2002))
5493+ -> Hash
5494+ -> Seq Scan on customer customer_2
55015495 -> Redistribute Motion 1:3 (slice11)
55025496 -> Limit
55035497 -> Gather Motion 3:1 (slice12; segments: 3)
@@ -5553,5 +5547,5 @@ INSERT INTO pg_statistic VALUES (
55535547 Filter: ((share0_ref2.sale_type = 's'::text) AND (share0_ref2.d_year = 2001) AND (share0_ref2.sum > '0'::numeric))
55545548 -> Shared Scan (share slice:id 18:0)
55555549 Optimizer: GPORCA
5556- (125 rows)
5550+ (119 rows)
55575551
0 commit comments