-
Notifications
You must be signed in to change notification settings - Fork 50
fix: access MATERIALIZED_VIEW with read_gbq #1070
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,9 +390,16 @@ def test_read_gbq_twice_with_same_timestamp(session, penguins_table_id): | |
assert df3 is not None | ||
|
||
|
||
def test_read_gbq_on_linked_dataset_warns(session): | ||
@pytest.mark.parametrize( | ||
"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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, will add that. |
||
], | ||
) | ||
def test_read_gbq_on_linked_dataset_warns(session, source_table): | ||
with warnings.catch_warnings(record=True) as warned: | ||
session.read_gbq("bigframes-dev.thelook_ecommerce.orders") | ||
session.read_gbq(source_table) | ||
assert len(warned) == 1 | ||
assert warned[0].category == bigframes.exceptions.TimeTravelDisabledWarning | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.
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.