Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

fix: access MATERIALIZED_VIEW with read_gbq#1070

Merged
Genesis929 merged 2 commits intomainfrom
mat_view_fix_huanc
Oct 9, 2024
Merged

fix: access MATERIALIZED_VIEW with read_gbq#1070
Genesis929 merged 2 commits intomainfrom
mat_view_fix_huanc

Conversation

@Genesis929
Copy link
Copy Markdown
Collaborator

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Oct 9, 2024
@Genesis929 Genesis929 changed the title fix: corrected inability to access MATERIALIZED_VIEW with read_gbq fix: access MATERIALIZED_VIEW with read_gbq Oct 9, 2024
@Genesis929 Genesis929 marked this pull request as ready for review October 9, 2024 21:04
@Genesis929 Genesis929 requested review from a team and shobsi October 9, 2024 21:04
@Genesis929 Genesis929 added the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 9, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 9, 2024

# Materialized views,does not support snapshot
if table_type == "MATERIALIZED_VIEW":
warnings.warn(
Copy link
Copy Markdown
Contributor

@shobsi shobsi Oct 9, 2024

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@Genesis929 Genesis929 requested a review from shobsi October 9, 2024 21:15
@Genesis929 Genesis929 enabled auto-merge (squash) October 9, 2024 22:03
@Genesis929 Genesis929 merged commit 601e984 into main Oct 9, 2024
@Genesis929 Genesis929 deleted the mat_view_fix_huanc branch October 9, 2024 22:05
"source_table",
[
"bigframes-dev.thelook_ecommerce.orders",
"bigframes-dev.bigframes_tests_sys.base_table_mat_view",
Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Collaborator Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants