christoph Nang
12/28/2023, 3:51 PMschema changes from baeline with generate_schema_baseline_test
the schema is properly autogenerated but i get this error:
using enforce_types = TRUE
dbt 1.3, elementary 0.8.2
is this a known issue?
Elementary: Warning - missing data types for columns:Ella Katz
12/31/2023, 4:05 PMchristoph Nang
01/02/2024, 2:32 PMElla Katz
01/02/2024, 2:38 PMchristoph Nang
01/02/2024, 2:46 PM'dbt clean && \\\ndbt deps && \\\ndbt run --select elementary && \\ \ndbt run-operation elementary.generate_schema_baseline_test --args \'{"enforce_types": true}\' && \\\ndbt test --profiles-dir my_dir
result:
sources:
- name: my_model
tables:
- name: my_table
columns:
- name: col1
data_type: VARCHAR
- name: col2
data_type: VARCHAR
- name: col3
data_type: VARCHAR
- name: col4
data_type: VARCHAR
tests:
- elementary.schema_changes_from_baseline:
enforce_types: trueElla Katz
01/03/2024, 9:30 AMsources:
- name: my_model
tables:
- name: my_table
columns:
- name: col1
data_type: VARCHAR
- name: col2
data_type: VARCHAR
- name: col3
data_type: VARCHAR
- name: col4
data_type: VARCHAR
tests:
- elementary.schema_changes_from_baseline:
enforce_types: true
If you like, you can try testing the contribution as well.