Status Update
Comments
va...@google.com <va...@google.com>
nr...@google.com <nr...@google.com> #2
Please follow the instructions at
You can
nr...@google.com <nr...@google.com> #3
Hello,
Thank you for reaching out to us with your request.
We have duly noted your feedback and will thoroughly validate it. While we cannot provide an estimated time of implementation or guarantee the fulfillment of the issue, please be assured that your input is highly valued. Your feedback enables us to enhance our products and services.
We appreciate your continued trust and support in improving our Google Cloud Platform products. In case you want to report a new issue, Please do not hesitate to create a new issue on the
Once again, we sincerely appreciate your valuable feedback; Thank you for your understanding and collaboration.
Description
Problem
Using CASE WHEN in TRANSFORM in a bigquery ML model, it breaks on deployment to vertexAI.
It is also broken when exporting the BQML model and loading it using tensorflow.
In particular, CASE WHEN can only handle 2 "WHEN" statements. If the 3rd "WHEN" would apply, it goes straight to the "ELSE" case instead (see Steps to reproduce)
What you expected to happen:
To be able to deploy a CASE WHEN with 3 or more "WHEN" cases. This is expected based on your docs here:https://cloud.google.com/bigquery/docs/exporting-models#export-transform-functions
Steps to reproduce:
Run this query to create a transform-only model (note the option to put it in vertex model registry):
After creating the model, use vertex UI to create an endpoint. Then I used curl to send this data (following instructions in vertex UI):
Result is:
Should be:
Other information:
Same problem happens when exporting and running in a vertexAI workbench Details:
Then download to vertexAI workbench, load with tensorflow.saved_model.load() Then adjust inputs using signature of model. Exactly the same results. I also paid attention that the tensorflow version matches the model's "tensorflow_version". I used tensorflow-cpu.
SQL to run it in Bigquery (works there as expected):
Use case of "TRANSFORM" for our company:
We have analysts that are very good at creating models and doing feature engineering but know too little python to write deployable preprocessing in python. The "TRANSFORM" in BQML would be a huge benefit to our team!