How to Build Incremental Models | dbt tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น • 15

  • @KahanDataSolutions
    @KahanDataSolutions  ปีที่แล้ว +2

    Looking for help with your team's data strategy? → www.kahandatasolutions.com
    Looking to improve your data engineering skillset?→ bit.ly/more-kds

  • @sandeshbidave565
    @sandeshbidave565 4 หลายเดือนก่อน +1

    How to achieve incremental insert in dbt without allowing duplicates base on specific columns?

  • @srikantaghosh2386
    @srikantaghosh2386 หลายเดือนก่อน

    Any best practices for handling late arriving data? How do handle this along with having an incremental model in place?

  • @patriciaayuso5470
    @patriciaayuso5470 ปีที่แล้ว +1

    Quick and simple way to explain dbt incremental models. Thanks for that!
    Any idea how to avoid those duplicates when doing the full-refresh you showed at the end?

    • @freshjulian1
      @freshjulian1 ปีที่แล้ว +1

      Ultimately, these are not duplicates but a historization of all changes, and I prefer a historization in raw data. However, you could adapt the SQL in dbt so that only the most recent record is inserted per batch_id (max invoiced_at per batch_id).

  • @andriifadieiev9757
    @andriifadieiev9757 ปีที่แล้ว

    Great content, just as always

  • @ayandakeith
    @ayandakeith 2 หลายเดือนก่อน

    Can we use HAVING in the {{% if is_incremental %}} macro?

  • @vamshiyadav7259
    @vamshiyadav7259 27 วันที่ผ่านมา

    How to handle deletion in incremental model

  • @berkbulten1171
    @berkbulten1171 ปีที่แล้ว +1

    Great content! Really appreciated all the tutorials regarding dbt! We are using incremental model for a while and the challenge we have is there are some tables with `id` unique identifier without any up-to-date date. Incremental model works to add only new records but fails to update previous records if there has been a change in any of the columns because we do not have any field like updated_at. Do you have any suggestions how can we solve this? For example, insert new records with new ids and update if there has been a change in a ´X´ column.
    Thank you!

  • @bienchen8957
    @bienchen8957 8 หลายเดือนก่อน

    What if my dbt model is about grouping or joining sources? Сan i make it incremental?

  • @abiddeveloper1
    @abiddeveloper1 ปีที่แล้ว

    Hello Kahan, I am following you since the beginning, now I am up to the dbt,
    please correct me if I'm wrong, we can do the same transformation with AWS Lambda Functions, by triggers or schedule, if the answer is yes, what would you recommend on AWS is it DBT or Lambda.
    And if we want to use dbt, please let me know where to host DBT project, to run it as cron job from github actions. can we host dbt on github and execute as a cronjob.
    Thank you so much in advance.

  • @abeeya13
    @abeeya13 10 หลายเดือนก่อน

    Could you please make a video on how to read static files from s3 and use it create model in dbt, thank you

    • @lethalnaija5747
      @lethalnaija5747 7 หลายเดือนก่อน

      you need to use dbt see. Do some research on it. I hope that helps