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

Support for BigQuery-specific functions #508

Open
maxcorbeau opened this issue Nov 22, 2022 · 0 comments
Open

Support for BigQuery-specific functions #508

maxcorbeau opened this issue Nov 22, 2022 · 0 comments
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

@maxcorbeau
Copy link

Background:

I have a question regarding functions (https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators?hl=en).

I see some of them are already supported via SQLALchemy itself (e.g. func.ST_CONTAINS) but BigQuery-specific functions aren't (e.g. REGEXP_CONTAINS).

I know we can write custom SQL using SQLAlchemy's text() fragments (https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-text-fragments-inside-bigger-statements) but to me this defeats the point of using a library, which is to provide a programatic and structured way to query data to specifically avoid free-text inputs (prone to human errors).

Some people have already asked about specific functions:

But no clue has been given as to the direction the development of this library is taking, leaving us in the dark, hence the below question.

Question:

Is there any plan to systematically implement BigQuery functions in the SQLALchemy BigQuery dialect, if so when?

Thanks!

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. label Nov 22, 2022
@meredithslota meredithslota added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Mar 2, 2023
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

2 participants