z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
422 stars 45 forks source link

Refactor column sorting in schema file #64

Closed connor-lough closed 1 year ago

connor-lough commented 1 year ago

This commit refactors the way columns are sorted in a schema file for a given model.

Instead of using a lambda function, it now uses an inner function that increments an arbitrary starting value to ensure sort order. This change allows for case-insensitive sorting of columns against Snowflake information schema.

z3z1ma commented 1 year ago

Closes #63