Skip to content

Breaking Change Demo #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ cicd_bot:
plan:
enable_preview: true

ui:
format_on_save: false

# list of users that are allowed to approve PRs for synchronized deployments
users:
- username: sung_sqlmesh_demo
Expand Down
2 changes: 1 addition & 1 deletion models/examples/seed_model.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MODEL (
columns (
id INT64,
item_id INT64,
event_date DATE
event_date TIMESTAMP
),
grain (id, event_date)
)
8 changes: 4 additions & 4 deletions models/staging/stg_payments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ MODEL (
);

SELECT
id AS payment_id,
order_id,
payment_method,
amount / 100 AS amount, /* `amount` is currently stored in cents, so we convert it to dollars */
id AS payment_id, --primary key
order_id, --foreign key
payment_method, -- ex: credit_card, bank_transfer
amount / 1000 AS amount, /* `amount` is currently stored in cents, so we convert it to dollars */
-- 'new_column' AS new_column, /* non-breaking change example */
FROM demo.seed_raw_payments

Expand Down
Loading