Open dbeatty10 opened 1 month ago
Hey @dbeatty10, From past few days i am trying to implement the tracking for --vars.
Please correct me if i am thinking in wrong direction.
--vars
which we passed in the cli? cli_vars
in manifest and we can track all the changes like we did for env_var
.cli_vars
. Do we require ordering of the cli_vars
, it could create a different filehash from prev one if order changed?Do add up any points which i should be taken care of in implementing this one.
@donjin-master this one is complicated enough that we'll probably wait until we can implement this ourselves rather than accept a community contribution.
Were you hoping to create a solution for this one specifically because it is relevant to one of your workflows? Or are you just generally looking to contribute to something to dbt-core? If the latter, here's where you can find issues that we've labeled for community contributors:
Is this your first time submitting a feature request?
Describe the feature
Avoid full parses and use partial parsing when project vars have not changed.
The implementation would more granularly track where those inputs are being used — that is, extending what we've done for env vars to project vars. I believe the relevant partial parsing code related to environment variables is here.
Describe alternatives you've considered
No response
Who will this benefit?
This will allow dbt to complete the parsing phase faster by using partial parsing to only parse the changed files (or files related to those changes).
Are you interested in contributing this feature?
No response
Anything else?
From https://github.com/dbt-labs/docs.getdbt.com/issues/1066#issuecomment-2015122367 and https://github.com/dbt-labs/dbt-core/pull/9844#issuecomment-2038133642