|
2 | 2 | -- !ds_shape_11 --
|
3 | 3 | PhysicalCteAnchor ( cteId=CTEId#0 )
|
4 | 4 | --PhysicalCteProducer ( cteId=CTEId#0 )
|
5 |
| -----PhysicalUnion |
6 |
| -------PhysicalProject |
7 |
| ---------hashAgg[GLOBAL] |
8 |
| -----------PhysicalDistribute |
9 |
| -------------hashAgg[LOCAL] |
| 5 | +----PhysicalProject |
| 6 | +------hashJoin[INNER_JOIN] hashCondition=((PULL_UP_UNIFIED_OUTPUT_ALIAS = customer.c_customer_sk)) otherCondition=() |
| 7 | +--------PhysicalDistribute |
| 8 | +----------PhysicalProject |
| 9 | +------------PhysicalUnion |
10 | 10 | --------------PhysicalProject
|
11 |
| -----------------hashJoin[INNER_JOIN] hashCondition=((customer.c_customer_sk = store_sales.ss_customer_sk)) otherCondition=() build RFs:RF1 c_customer_sk->[ss_customer_sk] |
| 11 | +----------------hashAgg[GLOBAL] |
12 | 12 | ------------------PhysicalDistribute
|
13 |
| ---------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[ss_sold_date_sk] |
| 13 | +--------------------hashAgg[LOCAL] |
14 | 14 | ----------------------PhysicalProject
|
15 |
| -------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 RF1 |
16 |
| -----------------------PhysicalDistribute |
17 |
| -------------------------PhysicalProject |
18 |
| ---------------------------filter(d_year IN (1998, 1999)) |
19 |
| -----------------------------PhysicalOlapScan[date_dim] |
20 |
| -------------------PhysicalDistribute |
21 |
| ---------------------PhysicalProject |
22 |
| -----------------------PhysicalOlapScan[customer] |
23 |
| -------PhysicalProject |
24 |
| ---------hashAgg[GLOBAL] |
25 |
| -----------PhysicalDistribute |
26 |
| -------------hashAgg[LOCAL] |
| 15 | +------------------------hashJoin[INNER_JOIN] hashCondition=((store_sales.ss_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF0 d_date_sk->[ss_sold_date_sk] |
| 16 | +--------------------------PhysicalProject |
| 17 | +----------------------------PhysicalOlapScan[store_sales] apply RFs: RF0 |
| 18 | +--------------------------PhysicalDistribute |
| 19 | +----------------------------PhysicalProject |
| 20 | +------------------------------filter(d_year IN (1998, 1999)) |
| 21 | +--------------------------------PhysicalOlapScan[date_dim] |
27 | 22 | --------------PhysicalProject
|
28 |
| -----------------hashJoin[INNER_JOIN] hashCondition=((customer.c_customer_sk = web_sales.ws_bill_customer_sk)) otherCondition=() build RFs:RF3 c_customer_sk->[ws_bill_customer_sk] |
| 23 | +----------------hashAgg[GLOBAL] |
29 | 24 | ------------------PhysicalDistribute
|
30 |
| ---------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF2 d_date_sk->[ws_sold_date_sk] |
| 25 | +--------------------hashAgg[LOCAL] |
31 | 26 | ----------------------PhysicalProject
|
32 |
| -------------------------PhysicalOlapScan[web_sales] apply RFs: RF2 RF3 |
33 |
| -----------------------PhysicalDistribute |
34 |
| -------------------------PhysicalProject |
35 |
| ---------------------------filter(d_year IN (1998, 1999)) |
36 |
| -----------------------------PhysicalOlapScan[date_dim] |
37 |
| -------------------PhysicalDistribute |
38 |
| ---------------------PhysicalProject |
39 |
| -----------------------PhysicalOlapScan[customer] |
| 27 | +------------------------hashJoin[INNER_JOIN] hashCondition=((web_sales.ws_sold_date_sk = date_dim.d_date_sk)) otherCondition=() build RFs:RF1 d_date_sk->[ws_sold_date_sk] |
| 28 | +--------------------------PhysicalProject |
| 29 | +----------------------------PhysicalOlapScan[web_sales] apply RFs: RF1 |
| 30 | +--------------------------PhysicalDistribute |
| 31 | +----------------------------PhysicalProject |
| 32 | +------------------------------filter(d_year IN (1998, 1999)) |
| 33 | +--------------------------------PhysicalOlapScan[date_dim] |
| 34 | +--------PhysicalDistribute |
| 35 | +----------PhysicalProject |
| 36 | +------------PhysicalOlapScan[customer] |
40 | 37 | --PhysicalResultSink
|
41 | 38 | ----PhysicalTopN[MERGE_SORT]
|
42 | 39 | ------PhysicalDistribute
|
43 | 40 | --------PhysicalTopN[LOCAL_SORT]
|
44 | 41 | ----------PhysicalProject
|
45 |
| -------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id)) otherCondition=((if((year_total > 0.00), (cast(year_total as DECIMALV3(38, 8)) / year_total), 0.000000) > if((year_total > 0.00), (cast(year_total as DECIMALV3(38, 8)) / year_total), 0.000000))) |
46 |
| ---------------PhysicalProject |
47 |
| -----------------hashJoin[INNER_JOIN] hashCondition=((t_s_secyear.customer_id = t_s_firstyear.customer_id)) otherCondition=() |
48 |
| -------------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_firstyear.customer_id)) otherCondition=() |
49 |
| ---------------------PhysicalDistribute |
50 |
| -----------------------PhysicalProject |
51 |
| -------------------------filter((t_s_firstyear.dyear = 1998) and (t_s_firstyear.sale_type = 's') and (t_s_firstyear.year_total > 0.00)) |
52 |
| ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) |
53 |
| ---------------------PhysicalDistribute |
54 |
| -----------------------PhysicalProject |
55 |
| -------------------------filter((t_w_firstyear.dyear = 1998) and (t_w_firstyear.sale_type = 'w') and (t_w_firstyear.year_total > 0.00)) |
56 |
| ---------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) |
57 |
| -------------------PhysicalDistribute |
58 |
| ---------------------PhysicalProject |
59 |
| -----------------------filter((t_s_secyear.dyear = 1999) and (t_s_secyear.sale_type = 's')) |
60 |
| -------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) |
| 42 | +------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_firstyear.customer_id)) otherCondition=((if((year_total > 0.00), (cast(year_total as DECIMALV3(38, 8)) / year_total), 0.000000) > if((year_total > 0.00), (cast(year_total as DECIMALV3(38, 8)) / year_total), 0.000000))) |
61 | 43 | --------------PhysicalDistribute
|
62 | 44 | ----------------PhysicalProject
|
63 |
| -------------------filter((t_w_secyear.dyear = 1999) and (t_w_secyear.sale_type = 'w')) |
| 45 | +------------------filter((t_w_firstyear.dyear = 1998) and (t_w_firstyear.sale_type = 'w') and (t_w_firstyear.year_total > 0.00)) |
64 | 46 | --------------------PhysicalCteConsumer ( cteId=CTEId#0 )
|
| 47 | +--------------hashJoin[INNER_JOIN] hashCondition=((t_s_secyear.customer_id = t_s_firstyear.customer_id)) otherCondition=() |
| 48 | +----------------PhysicalDistribute |
| 49 | +------------------PhysicalProject |
| 50 | +--------------------filter((t_s_secyear.dyear = 1999) and (t_s_secyear.sale_type = 's')) |
| 51 | +----------------------PhysicalCteConsumer ( cteId=CTEId#0 ) |
| 52 | +----------------hashJoin[INNER_JOIN] hashCondition=((t_s_firstyear.customer_id = t_w_secyear.customer_id)) otherCondition=() |
| 53 | +------------------PhysicalDistribute |
| 54 | +--------------------PhysicalProject |
| 55 | +----------------------filter((t_w_secyear.dyear = 1999) and (t_w_secyear.sale_type = 'w')) |
| 56 | +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) |
| 57 | +------------------PhysicalDistribute |
| 58 | +--------------------PhysicalProject |
| 59 | +----------------------filter((t_s_firstyear.dyear = 1998) and (t_s_firstyear.sale_type = 's') and (t_s_firstyear.year_total > 0.00)) |
| 60 | +------------------------PhysicalCteConsumer ( cteId=CTEId#0 ) |
65 | 61 |
|
0 commit comments