jan_soubusta
01/13/2023, 9:01 AMthomas_briggs
01/13/2023, 2:02 PMaaronsteers
01/13/2023, 2:49 PMGood morning (in CZ),Good morning! Logged in from Santiago Chile! (UTC+3) 🇨🇱 this week, Meltano team is just wrapping up our 1-week colocation. 🙂
Need to store a state of pipeline runs.Have you had a look at the new custom state backends feature? https://docs.meltano.com/concepts/state_backends
cody_hanson
01/13/2023, 2:50 PMcody_hanson
01/13/2023, 2:54 PMjan_soubusta
01/13/2023, 5:03 PMthomas_briggs
01/13/2023, 5:52 PMaaronsteers
01/13/2023, 6:36 PMaaronsteers
01/14/2023, 1:08 AMaaronsteers
01/14/2023, 1:11 AMBtw. dbt can store their state tables in all supported databases.This is new to me and I wasn't able to find the feature with a google search. A bit of tangent, but I'd appreciate any link or reference you have on that, as it could be helpful to reference as an example.
jan_soubusta
01/16/2023, 8:16 AMrun_results.json
.
https://docs.getdbt.com/docs/deploy/about-state
The trick is that you have to design models to be idempotent. E.g., design an incremental transformation as select from X where not exists (select from X)
.
As a database expert, to be honest, I doubt about it can perform sufficiently in many cases.
But this is what dbt provides....thomas_briggs
01/17/2023, 2:43 PMthomas_briggs
01/17/2023, 2:44 PMSELECT MAX(dateCol) FROM {{ this }}
to figure out what data in your staging tables you need to pull into the modelthomas_briggs
01/17/2023, 2:44 PMjan_soubusta
01/17/2023, 5:40 PMthomas_briggs
01/17/2023, 5:47 PMthomas_briggs
01/17/2023, 5:49 PMdateField > (SELECT MAX(dateField) FROM {{ this }})
clause.thomas_briggs
01/17/2023, 5:51 PM