Repository navigation
[2.1] Backport #38111: Let openmetadata-ingestion share an environment with sqlfluff and dbt 2 - #38990
Conversation
… with sqlfluff and dbt 2 - collate-sqllineage 2.1.10 uses collate-sqlfluff 3.6.0, which installs as `collate_sqlfluff` instead of overwriting upstream `sqlfluff` files. - collate-data-diff 0.11.19 moves dbt-core to an optional extra and drops the unused mashumaro<3.11 pin, so dbt 2 (`dbt`/`dbt-oss`) can be installed alongside without a second distribution in site-packages/dbt. - Drop the dbt-extractor floor: it only existed for the dbt-core that collate-data-diff no longer pulls in. - The test fixture silences the renamed `collate_sqlfluff` logger.
…ames - A unit test fails if collate-sqlfluff ships a top-level sqlfluff package, script or plugin group again, or if collate-data-diff requires dbt-core or mashumaro outside an extra. - The integration conftest silences the renamed collate_sqlfluff logger.
…nd collate-data-diff 0.11.19 The lock drops the dbt-core subtree that collate-data-diff no longer pulls in.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskRemoving dbt-core from base ingestion dependencies and renaming the SQLFluff fork changes environment composition; consumers may encounter compatibility or import failures. Backports the sqlfluff and dbt coexistence fix to 2.1 by locking the released collate-sqlfluff 3.6.0, collate-sqllineage 2.1.10 and collate-data-diff 0.11.19 without the VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Backport of #38111 to 2.1.
Fixes #37970
Fixes #37974
collate-sqllineage==2.1.10(importscollate_sqlfluff, so it no longer overwrites or gets overwritten by upstreamsqlfluff).collate-data-diff>=0.11.19without the[dbt]extra, sodbt-core1.x andmashumaroare no longer installed into a dbt 2 environment; thedbt-extractor>=0.5.0floor goes with them.collate_sqlflufflogger.tests/unit/test_dependency_coexistence.pyfails if either fork reclaims the upstream names.ingestion/uv.lockregenerated (uv 0.13.4): bumps the three Collate packages and removes exactly thedbt-coresubtree (agate, daff, dbt-adapters, dbt-common, dbt-core, dbt-extractor, dbt-protos, dbt-semantic-interfaces, leather, mashumaro, parsedatetime, pytimeparse, snowplow-tracker).uv lock --checkpasses. 2.1 has noopenmetadata-airflow-apis/uv.lock.2.1 doesn't import
pytz, so nothing replaces it.Tests
Base install (Python 3.10, models generated):
test_dependency_coexistence.py: 2 passed.dbt,dbt-core,mashumaro,agateand upstreamsqlfluffare absent.LineageParser('insert into db.t2 select a from db.t1')→db.t1 → db.t2.metadata.*module: the onlyModuleNotFoundErrors are the optionalgreat_expectationsandpandasextras.On main, #38111 also passed a full
ci-nightlydispatch (unit 3.10–3.12, integration, 16 CLI E2E connectors incl.dbt_redshift).Type of change:
🤖 Generated with Claude Code