GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: add support for materialized views by tswast · Pull Request #408 · googleapis/python-bigquery
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Conversation
| ||||||||||||||||||||||||||||||||||||||||||||
|
Here is the summary of changes. You added 6 region tags.
This comment is generated by snippet-bot.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Minor naming ruminations, and a paste edit for the license header.
Thanks for putting this together!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| "partitioning_type": "timePartitioning", | ||
| "external_data_configuration": "externalDataConfiguration", | ||
| "friendly_name": "friendlyName", | ||
| "mv_enable_refresh": "materializedView", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can use a better prefix? For logical views we're already using view_ prefix, maybe mview or matview? My worry that mv is too terse here and/or people will overlook them in favor of the logical properties.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| @mv_query.deleter | ||
| def mv_query(self): | ||
| """Delete SQL query defining the table as a view.""" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: s/view/materialized view/ since we're dealing with multiple kinds now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
|
|
||
| def alter_materialized_view(override_values={}): | ||
| # [START bigquery_alter_materialized_view] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This tag makes me itchy, and expecting a DDL style ALTER MATERIALIZED VIEW statement rather than an api update call. Should we correct the tag?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Agreed, corrected to bigquery_update_materialized_view.
The corresponding docs section has room for both. https://cloud.google.com/bigquery/docs/materialized-views#alter For example the bq table shows bq query with DDL and bq update options.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,93 @@ | |||
| # Copyright 2016 Google Inc. All Rights Reserved. | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
2020?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
support for materialized views
There was an error while loading. Please reload this page.