feat(python): support exist_ok for materialized views (#4991)

This commit is contained in:
Jack Ye
2026-11-13 19:21:29 -08:00
committed by GitHub
parent 4db0d5c7f5
commit 81d04b8c36
13 changed files with 281 additions and 6 deletions
+10
View File
@@ -27,6 +27,16 @@ CREATE MATERIALIZED VIEW <name> AS SELECT ...
```
</CodeGroup>
{/* Draft for the materialized-view exist_ok release.
`IF NOT EXISTS` preserves an existing materialized view's definition, data and
refresh settings without refreshing it. The Python equivalent is
`db.create_materialized_view("saved", "source", exist_ok=True)`. A skipped
asynchronous creation returns a completed job without submitting a refresh job.
Existing names are errors by default.
*/}
Once created, a materialized view can be queried like a table. Use the
statements below to list, refresh and drop it. For SDK methods, see
[Materialized views](/management/materialized-view#create).