Skip to content

Commit 83fc1a8

Browse files
author
ddeleo
committed
comments
1 parent 2383ac0 commit 83fc1a8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
config { type: "test", dataset: "top_ten_zipcodes_by_population"}
2-
1+
config {
2+
type: "test",
3+
dataset: "top_ten_zipcodes_by_population"
4+
}
35

6+
-- Test input
47
input "population_by_zip_2000" {
58
SELECT "33143" AS zipcode, 1 AS population
69
UNION ALL
710
SELECT "33143" AS zipcode, 4 AS population
811
}
9-
12+
-- Test input
1013
input "population_by_zip_2010" {
1114
SELECT "33143" AS zipcode, 1 AS population
1215
UNION ALL
1316
SELECT "33143" AS zipcode, 3 AS population
1417
}
1518

19+
-- Expected output
1620
SELECT 2000 AS year, "33143" AS zipcode, 5 AS population
1721
UNION ALL
1822
SELECT 2010 AS year, "33143" AS zipcode, 4 AS population

0 commit comments

Comments
 (0)