Open franzoni315 opened 1 year ago
Just to get the obvious question out the way, does xxx.ml_models.mdl_revenue_forecast
definitely exist? Does select * from xxx.ml_models.mdl_revenue_forecast
return data?
I haven't used BigQuery ML at all - do these models create a table like a typical SQL model? If not I'll have to do some digging to see how they behave. Do you have any other ML models that are giving this error?
Yes! It is somewhat like a 'table', it appears in the search panel like an object, and you can do something like a select * from, but a little different. Here is an example from Bigquery ML docs:
SELECT
*
FROM
ML.PREDICT(MODEL `mydataset.mymodel`,
(
SELECT
label,
column1,
column2
FROM
`mydataset.mytable`))
Hi!
I am using upstream_prod package with a bigquery machine learning model and I am getting an error. The ML model is being referenced on a datamart, but it does not exist in production yet, so the fallback to development is being correctly triggered. However, it looks like the code on ref.sql
{% set return_ref = load_relation(parent_ref) %}
is returning none for this bigquery ML model, and generates the error: