Skip to content

Instantly share code, notes, and snippets.

View 9werayut's full-sized avatar
🏠
Working from home

Werayut Kumsuwan 9werayut

🏠
Working from home
  • GREENLINE SYNERGY CO.,LTD.
  • Thailand
View GitHub Profile
# สร้าง bucket
gsutil mb gs://[BUCKET]
# ลิสต์ files ใน bucket
gsutil ls gs://[BUCKET]
# ดูว่า bucket ขนาดเท่าไร (du: disk usage)
gsutil du -sh gs://[BUCKET]
@jeremyyeo
jeremyyeo / README.md
Last active March 20, 2024 15:33
Customising dbt snapshots #dbt

Customising dbt snapshots

It is currently not possible to modify the actual names of the snapshot metafields (dbt_valid_from and friends) even if you go down this path to customize the built in macros below - dbt-labs/dbt-core#7018

Customising dbt snapshots so that dbt_valid_from dates can use a variable.

Macros that need to be overridden are in the materializations/snapshots folder in dbt-core.

  1. Setup initial snapshot: