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

Chunk calls to DBT based on string length #1354

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

willbowditch
Copy link

@willbowditch willbowditch commented Jan 5, 2024

Fixes issue #1353

Bug

In some scenarios the argument list Elementary calls DBT with when uploading source freshness exceeds the limit of the operating system.

This is because the chunking of calls to DBT is currently based on the number of sources and not the length of the arguments. So some combination of sources results in longer argument lists than others.

This PR changes the chunking to use the character length and adds a buffer to allow for a bit of variation.

Testing

I've tested this locally by patching elementary in our deployment and confirming the results are uploaded.

On occasion 100 sources will result in an argument length that is too long, instead chunk using the serialised json string representation of the argument
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 this pull request may close these issues.

None yet

1 participant