Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iss 225 dbt unit test non default coltypes #227

Merged
merged 5 commits into from
Dec 22, 2024

Conversation

MattTriano
Copy link
Owner

Changes:

  • Updated data_raw-stage unit_test to A) mock up data in the sql format, and thus B) actually run without error. Closes dbt unit_test can't compile due to a Geometry-typed column #225
  • Adds clean-stage dedupe-logic unit_tests against a model with a geospatial column to test the dedupe logic macro against similar models.
  • Removes two columns that don't exist in data_raw models from the data_raw/schema.yml
  • Updates the clean/schema.yml to reflect the (ancient) refactoring (from here) that separated the _standardized and _clean stage models into separate schemas.

Regarding the unit_tests, I'm not too happy with this fix, the tests are much harder to read and quickly identify the differences that are being tested. Hopefully a more elegant solution emerges, but this workaround gets unit_tests against geospatial models to actually work, which is good enough for now.

@MattTriano MattTriano merged commit 2a51210 into main Dec 22, 2024
1 check passed
@MattTriano MattTriano deleted the iss_225_dbt_unit_test_non_default_coltypes branch December 22, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dbt unit_test can't compile due to a Geometry-typed column
1 participant