Skip to content

fix(transform): compare resolved DuckDB paths in dev-target preflight - #234

Merged
marcociav-exmergo merged 2 commits into
exmergo:mainfrom
AshSgDe29071999:fix/dev-target-duckdb-path-normalize
Aug 7, 2026
Merged

fix(transform): compare resolved DuckDB paths in dev-target preflight#234
marcociav-exmergo merged 2 commits into
exmergo:mainfrom
AshSgDe29071999:fix/dev-target-duckdb-path-normalize

Conversation

@AshSgDe29071999

Copy link
Copy Markdown
Contributor

Summary

Dev-target preflight compared DuckDB paths as raw strings, so warehouse.duckdb, ./warehouse.duckdb, and absolute paths to the same file were treated as drift.

Changes

  • Resolve config path against the repo root and profile path against the dbt project dir (expanduser + absolute + resolve).
  • Accept equivalent spellings / symlinks; keep refusal for real mismatches with resolved paths in the message.
  • Unit test for equivalent spellings.

Closes #196

@marcociav-exmergo marcociav-exmergo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AshSgDe29071999 thanks for this. pls add a brief summary of your changes to the CHANGELOG.MD, under Unreleased

@AshSgDe29071999

Copy link
Copy Markdown
Contributor Author

Added Unreleased CHANGELOG entry for the DuckDB path-normalize preflight fix.

@AshSgDe29071999
AshSgDe29071999 force-pushed the fix/dev-target-duckdb-path-normalize branch from b0e727a to bfc3537 Compare August 7, 2026 12:50

@marcociav-exmergo marcociav-exmergo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AshSgDe29071999 , looks good!
Just fix the ruff linter issues and the merge conflicts, then we can merge

Closes exmergo#196

warehouse.duckdb vs ./warehouse.duckdb vs absolute paths named the same
file but string compare refused the build. Resolve config and profile
paths before comparing; show resolved forms when they still differ.
@AshSgDe29071999

Copy link
Copy Markdown
Contributor Author

Rebased on main (resolved CHANGELOG conflict with #235/#236 entries), fixed ruff format (extra blank line in dev_target.py), and kept the Unreleased Fixed entry for the resolved DuckDB path comparison.

@AshSgDe29071999
AshSgDe29071999 force-pushed the fix/dev-target-duckdb-path-normalize branch from 4e191d3 to 62db1d7 Compare August 7, 2026 13:09

@marcociav-exmergo marcociav-exmergo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marcociav-exmergo
marcociav-exmergo merged commit f71a252 into exmergo:main Aug 7, 2026
9 checks passed
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.

dev-target preflight compares DuckDB paths as raw strings

2 participants