async is requesting stuff too fast
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
MODEL (
|
||||
name sqlmesh_example.full_model,
|
||||
kind FULL,
|
||||
cron '@daily',
|
||||
grain item_id,
|
||||
audits (assert_positive_order_ids),
|
||||
);
|
||||
|
||||
SELECT
|
||||
item_id,
|
||||
COUNT(DISTINCT id) AS num_orders,
|
||||
FROM
|
||||
sqlmesh_example.incremental_model
|
||||
GROUP BY item_id
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
MODEL (
|
||||
name sqlmesh_example.incremental_model,
|
||||
kind INCREMENTAL_BY_TIME_RANGE (
|
||||
time_column event_date
|
||||
),
|
||||
start '2020-01-01',
|
||||
cron '@daily',
|
||||
grain (id, event_date)
|
||||
);
|
||||
|
||||
SELECT
|
||||
id,
|
||||
item_id,
|
||||
event_date,
|
||||
FROM
|
||||
sqlmesh_example.seed_model
|
||||
WHERE
|
||||
event_date BETWEEN @start_date AND @end_date
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
MODEL (
|
||||
name sqlmesh_example.seed_model,
|
||||
kind SEED (
|
||||
path '../seeds/seed_data.csv'
|
||||
),
|
||||
columns (
|
||||
id INTEGER,
|
||||
item_id INTEGER,
|
||||
event_date DATE
|
||||
),
|
||||
grain (id, event_date)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user