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

Ensure adapter does not fetch actual records from materialization #214

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

ravjotbrar
Copy link
Contributor

Summary

During the second run of an incremental materialization, the adapter would try and fetch records from the temporary table it is creating. This made the adapter hang if the table was large enough.

Description

Made the fetch configuration false by default. Also changed the run_query macro to use call_statement, as run_query will always fetch the data that is returned by the sql query. Thanks to @mxmarg for the initial iteration of this fix.

Related Issue

#211

Copy link
Contributor

@mxmarg mxmarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested these changes on my machine and they correctly suppress data fetching for incremental models.

@ravjotbrar ravjotbrar merged commit ef025e7 into main Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants