Skip to content

[2.1] Backport #38111: Let openmetadata-ingestion share an environment with sqlfluff and dbt 2 - #38990

Merged
ulixius9 merged 3 commits into
2.1from
ulixius9/sqlfluff-dbt-coexistence-2.1
Nov 27, 2026
Merged

ulixius9 merged 3 commits into
2.1from
ulixius9/sqlfluff-dbt-coexistence-2.1

Conversation

@ulixius9

@ulixius9 ulixius9 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Backport of #38111 to 2.1.

Fixes #37970
Fixes #37974

  • collate-sqllineage==2.1.10 (imports collate_sqlfluff, so it no longer overwrites or gets overwritten by upstream sqlfluff).
  • collate-data-diff>=0.11.19 without the [dbt] extra, so dbt-core 1.x and mashumaro are no longer installed into a dbt 2 environment; the dbt-extractor>=0.5.0 floor goes with them.
  • Test helpers silence the renamed collate_sqlfluff logger.
  • tests/unit/test_dependency_coexistence.py fails if either fork reclaims the upstream names.
  • ingestion/uv.lock regenerated (uv 0.13.4): bumps the three Collate packages and removes exactly the dbt-core subtree (agate, daff, dbt-adapters, dbt-common, dbt-core, dbt-extractor, dbt-protos, dbt-semantic-interfaces, leather, mashumaro, parsedatetime, pytimeparse, snowplow-tracker). uv lock --check passes. 2.1 has no openmetadata-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, agate and upstream sqlfluff are absent.
  • LineageParser('insert into db.t2 select a from db.t1') → db.t1 → db.t2.
  • Import sweep of every non-generated metadata.* module: the only ModuleNotFoundErrors are the optional great_expectations and pandas extras.

On main, #38111 also passed a full ci-nightly dispatch (unit 3.10–3.12, integration, 16 CLI E2E connectors incl. dbt_redshift).

Type of change:

  • Bug fix

🤖 Generated with Claude Code

… 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.
@ulixius9
ulixius9 requested a review from a team as a code owner November 27, 2026 12:38
@ulixius9
ulixius9 requested review from mohittilala and removed request for a team November 27, 2026 12:38
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Removing 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 [dbt] extra, so dbt-core 1.x is no longer installed into dbt 2 environments. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ulixius9
ulixius9 merged commit 2323021 into 2.1 Nov 27, 2026
45 of 46 checks passed
@ulixius9
ulixius9 deleted the ulixius9/sqlfluff-dbt-coexistence-2.1 branch November 27, 2026 16:05
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.

1 participant