When creating a schema.yml file for a data model, I’m always confused about the expected data_type values for the format like below. Do we have a list of suggested types, and does it vary on different query engines? Thanks!
I haven’t, I’ve been using the data type values compatible to the underlying database (BigQuery, etc.) and it seems working just fine. With the introduction of model constraints and contract, I believe dbt is indeed validating the data types defined in schema.yml with the underlying DB
At this moment, I’m using generic types in the generator (string, decimal, etc…), as soon as I finish the generator I will try it and check if they are valid or not.