Skip to content
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

Unable to use table sampling #416

Open
XiaoyuLiu198 opened this issue Feb 19, 2022 · 1 comment
Open

Unable to use table sampling #416

XiaoyuLiu198 opened this issue Feb 19, 2022 · 1 comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@XiaoyuLiu198
Copy link

BigQuery don't support sampling with order function in sqlalchemy. By sampling I mean raw SQL looks like this SELECT * FROM dataset.my_table TABLESAMPLE SYSTEM (10 PERCENT).

Describe the solution you'd like
Wondering if it's possible that sampling function can be added.
Describe alternatives you've considered
If RAND() is supported in sqlalchemy, we then can get shuffled sample together with select(with where condition).
Additional context
Add any other context or screenshots about the feature request here.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. label Feb 19, 2022
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Feb 19, 2022
@tswast tswast added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Feb 28, 2022
@meredithslota
Copy link

This is a feature request for BigQuery itself — I believe that table sampling is in "preview" now: https://cloud.google.com/bigquery/docs/table-sampling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants