-
Notifications
You must be signed in to change notification settings - Fork 43
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
fix: access MATERIALIZED_VIEW with read_gbq #1070
Conversation
@@ -124,6 +125,17 @@ def validate_table( | |||
if table_ref.dataset_id.startswith("_"): | |||
return False | |||
|
|||
# Materialized views,does not support snapshot | |||
if table_type == "MATERIALIZED_VIEW": | |||
warnings.warn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add a test for this warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
"source_table", | ||
[ | ||
"bigframes-dev.thelook_ecommerce.orders", | ||
"bigframes-dev.bigframes_tests_sys.base_table_mat_view", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a concerned about hard coding this table. Could we at least include something in the scripts/
directory that can recreate this table if needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, will add that.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕