Skip to content
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

Begin supplying a batch_id in the mode context for batches given to adapters #11025

Closed
Tracked by #10624
QMalcolm opened this issue Nov 21, 2024 · 0 comments · Fixed by #11031
Closed
Tracked by #10624

Begin supplying a batch_id in the mode context for batches given to adapters #11025

QMalcolm opened this issue Nov 21, 2024 · 0 comments · Fixed by #11031
Assignees

Comments

@QMalcolm
Copy link
Contributor

QMalcolm commented Nov 21, 2024

In dbt-labs/dbt-adapters#360, we're trying to ensure each batch ends up making a distinct temp_relation in the data warehouse (as they are currently using the same temp_relation which is bad). In order for each batch to have a different temp_relation, we need to ensure that there is some sort of batch identifier information in the model context. We believe it would be best to start supplying a batch_id which for a given microbatch model is guaranteed to be unique, but is also human-readable to aid in debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant