SHARE
TWEET

Untitled

a guest Jul 24th, 2019 122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. explain select count(*) from ((select nationkey from customer) union all (select nationkey from customer)) group by nationkey;
  2.                                                        Query Plan
  3. -------------------------------------------------------------------------------------------------------------------------
  4.  Output[_col0]
  5.  │   Layout: [count:bigint]
  6.  │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  7.  │   _col0 := count
  8.  └─ RemoteExchange[GATHER]
  9.     │   Layout: [count:bigint]
  10.     │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  11.     └─ Project[]
  12.        │   Layout: [count:bigint]
  13.        │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  14.        └─ Aggregate(FINAL)[expr_16]
  15.           │   Layout: [expr_16:bigint, count:bigint]
  16.           │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  17.           │   count := count("count_24")
  18.           └─ LocalExchange[HASH][$hashvalue] ("expr_16")
  19.              │   Layout: [expr_16:bigint, count_24:bigint, $hashvalue:bigint]
  20.              │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  21.              ├─ Project[]
  22.              │  │   Layout: [expr_16:bigint, count_24:bigint, $hashvalue_25:bigint]
  23.              │  │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  24.              │  │   expr_16 := "nationkey"
  25.              │  └─ RemoteExchange[REPARTITION][$hashvalue_25]
  26.              │     │   Layout: [nationkey:bigint, count_24:bigint, $hashvalue_25:bigint]
  27.              │     │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  28.              │     └─ Project[]
  29.              │        │   Layout: [nationkey:bigint, count_24:bigint, $hashvalue_26:bigint]
  30.              │        │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  31.              │        │   $hashvalue_26 := "combine_hash"(bigint '0', COALESCE("$operator$hash_code"("nationkey"), 0))
  32.              │        └─ Aggregate(PARTIAL)[nationkey]
  33.              │           │   Layout: [nationkey:bigint, count_24:bigint]
  34.              │           │   count_24 := count(*)
  35.              │           └─ TableScan[tpch:customer:sf0.01]
  36.              │                  Layout: [nationkey:bigint]
  37.              │                  Estimates: {rows: 1500 (13.18kB), cpu: 13.18k, memory: 0B, network: 0B}
  38.              │                  nationkey := tpch:nationkey
  39.              └─ Project[]
  40.                 │   Layout: [expr_16:bigint, count_24:bigint, $hashvalue_27:bigint]
  41.                 │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  42.                 │   expr_16 := "nationkey_6"
  43.                 └─ RemoteExchange[REPARTITION][$hashvalue_27]
  44.                    │   Layout: [nationkey_6:bigint, count_24:bigint, $hashvalue_27:bigint]
  45.                    │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  46.                    └─ Project[]
  47.                       │   Layout: [nationkey_6:bigint, count_24:bigint, $hashvalue_28:bigint]
  48.                       │   Estimates: {rows: ? (?), cpu: ?, memory: ?, network: ?}
  49.                       │   $hashvalue_28 := "combine_hash"(bigint '0', COALESCE("$operator$hash_code"("nationkey_6"), 0))
  50.                       └─ Aggregate(PARTIAL)[nationkey_6]
  51.                          │   Layout: [nationkey_6:bigint, count_24:bigint]
  52.                          │   count_24 := count(*)
  53.                          └─ TableScan[tpch:customer:sf0.01]
  54.                                 Layout: [nationkey_6:bigint]
  55.                                 Estimates: {rows: 1500 (13.18kB), cpu: 13.18k, memory: 0B, network: 0B}
  56.                                 nationkey_6 := tpch:nationkey
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top