kristeligt-dagblad / dbt_ml

Package for dbt that allows users to train, audit and use BigQuery ML models.
Apache License 2.0
64 stars 26 forks source link

Issue38: Fix for tuple startswith error #39

Closed CraigWilson-ZOE closed 1 year ago

CraigWilson-ZOE commented 2 years ago

Pull Request to fix the issue: https://github.com/kristeligt-dagblad/dbt_ml/issues/38

The startswith method was called on a tuple rather than the key of the tuple. This fix changes the code to only check the key value, which contains the configuration keys for the model.

This has been tested locally and works as expected - runs without error and builds a model in BigQuery.