-
Notifications
You must be signed in to change notification settings - Fork 138
feat: Add "time_partitioning" and "clustering_fields" in table creation process #891
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
Conversation
Added "time_partitioning" and "clustering_fields" in table creation schema by keyword options "bigquery_time_partitioning" and "bigquery_clustering_fields".
Added "TimePartitioning" class in __init__
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
extended class "TimePartitioning" with conversion bigquery.TimePartitioning to sqlalchemy_bigquery.TimePartitioning by class function "frombigquery_time_partitioning"
Added basic check with rise of error if "Time & Cluster" columns not in the table.
Added export in the header from sqlalchemy.exc import NoSuchColumnError
Removed "typing.Self" for compatibility with python < 3.11
I've been keeping an eye on this PR ever since it's been put up. For most tables, not being able to specify partitioning and clustering is a non-starter for using this SQLAlchemy dialect. Is there any way I might help to take it across the finish line? CC @chalmerlowe @tswast |
There appear to be two PRs (this one and PR 928) that are aiming to accomplish similar outcomes. I am doing my best to examine both of them and see what makes the most sense in terms of next steps. |
Closing this, as #928 has been merged. |
Added "time_partitioning" and "clustering_fields" in table creation schema by keyword options "bigquery_time_partitioning" and "bigquery_clustering_fields".
creation sample: