finish historical extraction
This commit is contained in:
15
transform/sqlmesh-materia/models/example/full_model.sql
Normal file
15
transform/sqlmesh-materia/models/example/full_model.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user