fix: add explicit sqlserver__ dispatches in elementary_cli (CORE-877)#2241
Conversation
dbt-sqlserver no longer includes fabric in its adapter dispatch chain, so fabric__ macros in elementary_cli are not picked up for sqlserver targets. Add sqlserver__ delegates for get_test_results and get_adapter_unique_id. Co-authored-by: Cursor <cursoragent@cursor.com>
|
👋 @elazarlachkar |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughAdds SQL Server adapter-specific dbt macros: ChangesSQL Server Adapter Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Address review feedback — the explicit sqlserver__ macro makes the delegation path self-evident. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
sqlserver__get_test_resultsdelegating tofabric__get_test_resultsto avoid nested CTE errors on T-SQL duringedr monitor reportsqlserver__get_adapter_unique_idreturningtarget.server(sqlserver profiles useserver, nothost)Context
dbt-sqlserver no longer declares dbt-fabric as a dispatch parent (dbt-msft/dbt-sqlserver#628), so
fabric__macros in theelementary_clinamespace are not resolved for sqlserver targets. Warehouse CI on master passes 13/14 adapters; only sqlserver fails at the report step withIncorrect syntax near the keyword 'with'.Audited all
elementary_climacros — only these two hadfabric__implementations without explicitsqlserver__delegates. Other T-SQL-aware macros (e.g.test_conn) useelementary.is_tsql()indefault__.Test plan
edr monitor report)Made with Cursor
Summary by CodeRabbit
New Features
Documentation