15:22:37 Compilation Error in macro model_options (macros/materializations/model.sql)
15:22:37 'int object' has no attribute 'startswith'
15:22:37
15:22:37 > in macro bigquery__create_model_as (macros/materializations/model.sql)
15:22:37 > called by macro create_model_as (macros/materializations/model.sql)
15:22:37 > called by macro statement (macros/etc/statement.sql)
15:22:37 > called by macro materialization_model_bigquery (macros/materializations/model.sql)
15:22:37 > called by macro model_options (macros/materializations/model.sql)
Amending the model.sql at line 33 from this:
{%- if opt_val is sequence and (opt_val | first).startswith('hparam_') -%}
to this:
{%- if opt_val is sequence and not (opt_val | first) is number and (opt_val | first).startswith('hparam_') -%}
seems to fix the issue.
Let me know if this makes sense and if it's helpful to submit a PR for this.
Hi, I was trying to create a BQML model with the configuration below:
The compilation step throws the following error:
Amending the
model.sql
at line 33 from this:to this:
seems to fix the issue.
Let me know if this makes sense and if it's helpful to submit a PR for this.
Thanks