Skip to content

Allow generating NOT MATERIALIZED queries & call-site simplification - #142

Open
terencehonles wants to merge 1 commit into
dimagi:mainfrom
terencehonles:allow-generating-NOT-MATERIALIZED-queries
Open

Allow generating NOT MATERIALIZED queries & call-site simplification#142
terencehonles wants to merge 1 commit into
dimagi:mainfrom
terencehonles:allow-generating-NOT-MATERIALIZED-queries

Conversation

@terencehonles

@terencehonles terencehonles commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

This change allows generating both MATERIALIZED and NOT MATERIALIZED queries, deprecates name & materialized as positional arguments, moves the default CTE name ("cte") into the initializer so callers can use None and updates pytest to error on deprecation warnings.

@terencehonles
terencehonles force-pushed the allow-generating-NOT-MATERIALIZED-queries branch from d66e825 to 5c82b12 Compare July 14, 2026 11:07
@terencehonles terencehonles changed the title Allow generating NOT MATERIALIZED queries Allow generating NOT MATERIALIZED queries & call-site simplification Jul 14, 2026
This change allows generating both `MATERIALIZED` and `NOT MATERIALIZED`
queries, deprecates name & materialized as positional arguments, moves
the default CTE name ("cte") into the initializer so callers can use
`None` and updates pytest to error on deprecation warnings.
@terencehonles
terencehonles force-pushed the allow-generating-NOT-MATERIALIZED-queries branch from 5c82b12 to 0fbea80 Compare July 14, 2026 11:36
@millerdev

Copy link
Copy Markdown
Contributor

This does four things in one commit

  • allows generating both MATERIALIZED and NOT MATERIALIZED queries
  • deprecates name & materialized as positional arguments
  • moves the default CTE name ("cte") into the initializer so callers can use None
  • updates pytest to error on deprecation warnings.

I would prefer they had been done in separate commits.

deprecates name & materialized as positional arguments

Can you say a bit more about why this is necessary?

moves the default CTE name ("cte") into the initializer so callers can use None

Why would a caller want to use name=None?

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.

2 participants