Skip to content

Commit 48670c8

Browse files
Guillaume-Henri HuonGCP Dataform
Guillaume-Henri Huon
authored and
GCP Dataform
committed
Add sampling so workflows run faster
1 parent ee9811d commit 48670c8

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

definitions/staging/stg_badges.sqlx

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ select
1010
date as award_timestamp,
1111
user_id
1212
from
13-
${ref("badges")}
13+
${ref("badges")}
14+
15+
limit 100

definitions/staging/stg_posts_answers.sqlx

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ from
1616
${ref("posts_answers")}
1717
where
1818
-- limit to recent data for the purposes of this demo project
19-
creation_date >= timestamp("2019-01-01")
19+
creation_date >= timestamp("2019-01-01")
20+
21+
limit 100

definitions/staging/stg_posts_questions.sqlx

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ from
1616
${ref("posts_questions")}
1717
where
1818
-- limit to recent data for the purposes of this demo project
19-
creation_date >= timestamp("2019-01-01")
19+
creation_date >= timestamp("2019-01-01")
20+
21+
limit 100

definitions/staging/stg_users.sqlx

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ select
1010
creation_date,
1111
round(timestamp_diff(current_timestamp(), creation_date, day)/365) as user_tenure
1212
from
13-
${ref("users")}
13+
${ref("users")}
14+
15+
limit 100

0 commit comments

Comments
 (0)