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

Full refresh model kind creating multiple batches #3729

Open
MikeWallis42 opened this issue Jan 28, 2025 · 0 comments
Open

Full refresh model kind creating multiple batches #3729

MikeWallis42 opened this issue Jan 28, 2025 · 0 comments

Comments

@MikeWallis42
Copy link
Contributor

I'm still trying to narrow down the exact conditions but the thing that triggered this behaviour was setting the default start in config.yml to a date far in the past.

model_defaults:
  dialect: trino
  start: 2020-03-09

After doing this we noticed the plan mentioned 4 batches which then failed our duplicate primary key audit as there's no temporal macros used in the full models, so it inserted the same date 4 times.

I initially thought it could be because of the variable BATCH_SIZE = 10000 as our models are set to interval_unit 'hour' but that only seems to be used when creating source queries for dataframes.

At the moment we have a workaround by changing the start directly in full models to start '1 day ago'

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

No branches or pull requests

1 participant