Skip to content

Commit

Permalink
Fix union query in tpch example
Browse files Browse the repository at this point in the history
Co-Authored-By: Jonatan Jäderberg <[email protected]>
  • Loading branch information
s1ck and jjaderberg committed Oct 14, 2024
1 parent 05de458 commit 0fca13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snowgraph/tpch-example.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ CREATE OR REPLACE TABLE node_mapping_orders(gdsId, o_orderkey) AS
-- Note, that the view must contain a column named "nodeId" to be recognized by GDS.
-- Any additional column will be used as node property, but we don't need that for this example.
CREATE OR REPLACE VIEW nodes(nodeId) AS
SELECT nmp.gdsId
SELECT nmp.gdsId FROM node_mapping_parts nmp
UNION
SELECT nmo.gdsId;
SELECT nmo.gdsId FROM node_mapping_orders nmo;

-- Let's quickly verify the cardinality of our views.
-- As it is the union of parts and orders, we expect 1,700,000 rows.
Expand Down

0 comments on commit 0fca13b

Please sign in to comment.