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 Model.transform_columns from REST API #1644

Open
tswast opened this issue Aug 16, 2023 · 0 comments
Open

Support for Model.transform_columns from REST API #1644

tswast opened this issue Aug 16, 2023 · 0 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@tswast
Copy link
Contributor

tswast commented Aug 16, 2023

Is your feature request related to a problem? Please describe.

When importing a BQ Model into our library, we need to inspect the https://cloud.google.com/bigquery/docs/reference/rest/v2/models#Model.FIELDS.transform_columns property to

Describe the solution you'd like

I'd like a transform_columns property added to the Model class. This can return a Sequence[Dict] similar to what we do for training_runs:

def training_runs(self) -> Sequence[Dict[str, Any]]:

Describe alternatives you've considered

Currently, we are working around this issue with the following code:

for transform_col in bq_model._properties["transformColumns"]:

Also, alternatively we could create a TransformColumn class, but given how frequently the BQML API changes and limited capacity for manual updates, I recall we are OK with just exposing the raw-ish REST resources over here.

Additional context

This is potentially a good starter project for my apprentices.

@tswast tswast added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Aug 16, 2023
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Aug 16, 2023
@tswast tswast changed the title Support for Model.transformColumns from REST API Support for Model.transform_columns from REST API Aug 16, 2023
@tswast tswast self-assigned this Aug 16, 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 API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant