Skip to content

fix(pinot): require the SQLAlchemy 2 driver extra - #44287

Merged
aminghadersohi merged 5 commits into
apache:masterfrom
aminghadersohi:sqlalchemy2-pinot-floor
Sep 22, 2026
Merged

aminghadersohi merged 5 commits into
apache:masterfrom
aminghadersohi:sqlalchemy2-pinot-floor

Conversation

@aminghadersohi

Copy link
Copy Markdown
Contributor

SUMMARY

Select pinotdb[sqlalchemy]>=8.0.0,<10.0.0 instead of bare pinotdb>=5.0.0,<10.0.0. The first published version allowed by the old range is5.1.0; versions through7.0.0 declare SQLAlchemy>=1.4,<2 in their optional [sqlalchemy] extra. Version8.0.0 first declares SQLAlchemy>=2,<3. Selecting the extra lets the resolver enforce the dialect's support contract.

This is a declared-support floor, not a claim that the old bare requirement causes an unconditional resolver conflict or that every old runtime operation fails. Add optional regressions checking extra-conditioned dependency metadata and socket-free engine construction/parameter compilation for pinot://, pinot+http://, and pinot+https://. Document the requirement in metadata, its regenerated documentation field, and UPDATING.md. No dev lock change: Pinot is not part of the development install.

Independent SC-121012 slice of SC-120252. Shell #4935 already owns its9.1.2 upgrade; SC-121005/upstreampinot-dbapi#241 owns schema-qualified SQL and SC-121007 owns reflected DECIMAL/BYTES/multivalue behavior. Those runtime defects are explicitly not fixed here.

TESTING INSTRUCTIONS

  • uv pip install --dry-run 'pinotdb[sqlalchemy]==7.0.0' 'sqlalchemy==2.0.52' fails at the selected extra's <2 constraint.
  • Python3.11 / SQLAlchemy2.0.52 / greenlet3.5.5 / exactpinotdb8.0.0: pytest -q tests/unit_tests/db_engine_specs/test_pinot.py — 10 passed. Independently rerun; final pinned-greenlet run also10.
  • Bare7.0.0 old control underSQLAlchemy2: the three new tests reject the declared metadata at the intended version assertion (not an asserted runtime failure).
  • Staged pre-commit: all applicable hooks pass, including mypy/Ruff/pylint/metadata validation. Generated docs field verified, unrelated drift excluded.

Evidence limits: the optional tests skip if Pinot is absent, including defaultCI. The inherited dbapi() warning on HTTPS is not a failure. Exact8.0.0 pins urllib3==2.6.0, so it does not coexist with the unchanged base lock's urllib3==2.7.0; this is not exact-lock/image qualification. The allowed range includes9.1.2, which pinsurllib3==2.7.0. No base pin is lowered. No live8 broker/controller, TLS/authentication, reflection, or production-image qualification is claimed.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Not applicable.

ADDITIONAL INFORMATION

  • Has associated issue: SC-121012
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@bito-code-review

bito-code-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #2f4c33

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: da5e0f6..da5e0f6
    • pyproject.toml
    • superset/db_engine_specs/pinot.py
    • tests/unit_tests/db_engine_specs/test_pinot.py
  • Files skipped - 2
    • UPDATING.md - Reason: Filter setting
    • docs/src/data/databases.json - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Sep 15, 2026
@netlify

netlify Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit ac19cb2
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ab2ddbc5085c100083f6efc
😎 Deploy Preview https://deploy-preview-44287--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Final scope/CI checkpoint: independent review found no blocking implementation issues; canonical zone-pinned branch matches this published head. Hosted pre-commit and all 20 testcontainers jobs pass. Full unit suite remains pending; overall CI is not green. Actual migration-startup logs report Multiple head revisions on unchanged master (c7f53d184ea2 and 88a01c781622). Separate baseline repair is tracked as SC-121019, not folded into this driver PR. Full inventory/overlap and evidence boundaries: https://agor.sandbox.preset.zone/ui/kb/work-log/sqlalchemy2/sc120252-driver-floor-audit-2026-09-15.md . No formal human approval, live/exact-image qualification, or merge claimed.

@codecov

codecov Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.87%. Comparing base (7024401) to head (ac19cb2).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #44287      +/-   ##
==========================================
- Coverage   80.90%   80.87%   -0.04%     
==========================================
  Files        2948     2946       -2     
  Lines      177121   176895     -226     
  Branches    41054    40958      -96     
==========================================
- Hits       143308   143063     -245     
- Misses      31114    31133      +19     
  Partials     2699     2699              
Flag Coverage Δ
hive 36.95% <ø> (ø)
mysql 56.19% <ø> (-0.01%) ⬇️
postgres 56.20% <ø> (-0.01%) ⬇️
presto 38.90% <ø> (ø)
python 85.20% <ø> (ø)
sqlite 55.91% <ø> (ø)
unit 77.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

The shared master Alembic startup blocker is isolated in ready PR #44288 (d6f00dcffec9beb74bc9480b40f38515c5527a5a): a no-op merge of c7f53d184ea2 and 88a01c781622, reproduced on master ae240a8e6f0332acb709943d0884eae73927c9de.

No driver changes or migration workarounds are added here. Graph/SQLite upgrade-downgrade validation and 147 focused migration tests pass; independent review found no correctness issues. #44288's CI/maintainer review is pending, and its landing must be coordinated with the overlapping ClickHouse migration in #44283. The general Python-Unit jobs on #44285/#44286/#44287 passed; the confirmed blocker is in migration-dependent startup jobs, not that general unit suite. Nothing has been merged.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Live CI audit at head da5e0f6: 73 SUCCESS, 15 FAILURE, 13 conditional SKIPPED, 2 informational Netlify NEUTRAL; no pending/cancelled/action-required checks and no review threads. None of the required checks is skipped. All 15 failures were inspected individually: 12 execution jobs stop at the shared Alembic multiple-head startup error, and 3 required aggregate jobs propagate failure. This is still blocked, not acceptable CI.

Local revalidation: all 10 Pinot unit tests pass (SQLAlchemy 2.0.52 / pinotdb 9.1.2), and pre-commit against all five PR-changed files passes, including mypy, Ruff, pylint and metadata validation. No implementation issue or review feedback requires a code change.

The separate baseline repair #44288 has no failing/pending applicable checks but awaits human review/landing; coordination request: #44288 (comment). I will not merge it or fold its migration into this driver PR. Monitoring for repaired master before rebase, validation, lease-protected push and a fresh complete CI run. Worktree remains in zone-sqlalchemy-2; PR remains open/non-draft and requires human review.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Addressed the independent zone audit wording finding in 48931bc: UPDATING.md, Pinot metadata and generated documentation explicitly state pinotdb[sqlalchemy]>=8.0.0,<10.0.0, including the upper bound. Ten focused Pinot tests and all applicable staged pre-commit hooks passed. Published with an explicit expected-old-SHA lease; worktree is clean. Fresh CI is queued/running and will be inspected. No rebase or migration workaround; post-repair rebase waits for actual #44288 landing on single-head master. No GitHub review threads exist to resolve.

@aminghadersohi

aminghadersohi commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Final CI audit at head 48931bcf0423997558f70e795d91da5c2dc92726 — all checks terminal, none pending/cancelled/action-required: 71 pass, 12 skipped (conditional), 15 fail. Workflow-level: 17 success, 3 skipped, 5 failure; no zero-job runs.

All 15 failures were inspected individually. 12 execution jobs (test-sqlite, test-mysql, test-postgres (current), test-postgres-hive, test-postgres-presto, test-load-examples, docker-build (dev), 4 playwright jobs, cypress-matrix (chrome)) stop at the same base-branch error:

ERROR [flask_migrate] Error: Multiple head revisions are present for given argument 'head'

The remaining 3 (test-postgres-required, playwright-tests-required, cypress-matrix-required) are aggregate gates propagating that result. Zero failures are attributable to this PR's diff. unit-tests (current), pre-commit (current), docker-build (lean), docker-build (superset) and all 20 testcontainers jobs pass.

Independently recomputed from origin/master @ a184395eca7c291d0b8b438f00690c633112f4d7: 387 revisions, 2 heads — c7f53d184ea2 and 88a01c781622. Master is broken for every PR, not just this one. Note that the Enforce single Alembic migration head check reports success here only because it short-circuits when a PR touches no superset/migrations/ files; it is not evidence of a single head.

No rebase performed: this PR is MERGEABLE with no conflicts, and master still carries both heads, so a rebase cannot change any outcome.

Coordination hazard worth flagging before either lands: #44288 (e2f3a1b9c640) and #44283 (f7b3a9c14e02) both declare down_revision = ("88a01c781622", "c7f53d184ea2"). They merge the same two heads. If both land as authored, master ends up with two heads again and this exact blocker returns. Whichever merges second must be rebased to chain off the first as a single parent rather than re-merge the same pair.

Exact human action required (maintainer-only):

  1. A Superset committer reviews and merges fix(migrations): merge purge audit and username index heads #44288 — a no-op merge revision joining exactly the two heads above; it is fully green (65 pass / 16 skipped / 0 fail).
  2. Before merging feat(clickhouse): migrate legacy clickhouse connections to clickhouse-connect #44283, rebase its down_revision onto whichever merge revision lands first.
  3. Once master is single-head, this PR needs a re-run to clear the 15 red jobs, plus a committer approval (reviewDecision: REVIEW_REQUIRED).

Dependency claim re-verified directly against PyPI metadata: pinotdb 6.0.0/7.0.0 declare sqlalchemy (>=1.4,<2) under extra == "sqlalchemy"; 8.0.0 is the first release declaring sqlalchemy (>=2.0,<3), unchanged through 9.1.2. The pinotdb[sqlalchemy]>=8.0.0,<10.0.0 floor and the matching UPDATING.md / metadata / docs wording are correct.

Known limitation, stated plainly: test_dialect_supports_installed_sqlalchemy uses pytest.importorskip("pinotdb.sqlalchemy") and pinotdb is not in requirements/development.txt, so that contract assertion skips rather than executes in unit-tests (current). This follows the existing repo pattern (tests/unit_tests/db_engine_specs/test_datastore.py); adding the driver to dev requirements is deliberately out of scope here.

Nothing merged, nothing drafted, no migration workaround folded into this PR.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Exact-head CI checkpoint: 48931bcf0423997558f70e795d91da5c2dc92726

Not green / blocked. All checks are terminal: 71 SUCCESS, 15 FAILURE, 10 conditional SKIPPED, 2 informational Netlify NEUTRAL. Seven of the 13 required checks fail; none is skipped. No cancelled/action-required/pending checks.

All 15 failed jobs on this new head were inspected individually: 12 actual execution jobs stop on Alembic MultipleHeads; 3 required aggregate jobs propagate their failures. The optional DockerHub login step is continue-on-error and concludes success; the Docker dev job's terminal failure is the migration startup. Separate repair #44288 is selected but remains unmerged and requires maintainer review. No migration workaround or unrelated repair was added here.

The range-wording feedback is fixed, 10 local Pinot tests and staged pre-commit passed, and hosted pre-commit / unit tests / all 20 testcontainers jobs passed. There are no GitHub review threads to resolve. Human review is still required. Worktree remains clean in zone-sqlalchemy-2, PR open/non-draft. Waiting for verified repair landing on single-head master before rebase and post-fix CI.

Full exact-head check rollup (98 checks)
Workflow Check Result Required
External status CodeQL SUCCESS
External status Header rules - superset-docs-preview NEUTRAL
External status Pages changed - superset-docs-preview NEUTRAL
External status Redirect rules - superset-docs-preview SUCCESS
External status codecov/patch SUCCESS
External status codecov/project SUCCESS
External status codecov/project/core-packages-ts SUCCESS
External status codecov/project/core-packages-tsx SUCCESS
External status netlify/superset-docs-preview/deploy-preview SUCCESS
External status zizmor SUCCESS
Auto-approve Dependabot patch bumps Approve patch-level bump SKIPPED
Build & publish docker images actions-timeline SUCCESS
Build & publish docker images changes SUCCESS
Build & publish docker images docker-build (dev) FAILURE
Build & publish docker images docker-build (lean) SUCCESS
Build & publish docker images docker-build (superset) SUCCESS
Build & publish docker images docker-compose-image-tag SKIPPED
Build & publish docker images setup_matrix SUCCESS
Build & publish docker images verify docker build PY_VER override SUCCESS
Check OpenAPI spec drift check-openapi-spec-drift SUCCESS
Check python dependencies check-python-deps SUCCESS
CodeQL Analyze (javascript) SUCCESS
CodeQL Analyze (python) SUCCESS
CodeQL changes SUCCESS
Dependency Review dependency-review SUCCESS Yes
Dependency Review python-dependency-liccheck SUCCESS
E2E actions-timeline SUCCESS
E2E changes SUCCESS
E2E cypress-matrix (chrome) FAILURE
E2E cypress-matrix-required FAILURE Yes
E2E playwright-tests (chromium) FAILURE
E2E playwright-tests (chromium, /app/prefix) FAILURE
E2E playwright-tests-required FAILURE Yes
Enforce single Alembic migration head enforce-single-migration-head SUCCESS Yes
Frontend Build CI (unit tests, linting & sanity checks) actions-timeline SUCCESS
Frontend Build CI (unit tests, linting & sanity checks) bundle-size SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) frontend-build SUCCESS Yes
Frontend Build CI (unit tests, linting & sanity checks) lint-frontend SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) report-coverage SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) sharded-jest-tests SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) test-storybook SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) validate-frontend SKIPPED
Hold Label Check check-hold-label SUCCESS
License Template Check License Check SUCCESS
PR Lint lint-check SUCCESS Yes
Playwright Experimental Tests actions-timeline SUCCESS
Playwright Experimental Tests changes SUCCESS
Playwright Experimental Tests playwright-tests-experimental (chromium) FAILURE
Playwright Experimental Tests playwright-tests-experimental (chromium, /app/prefix) FAILURE
Pull Request Labeler labeler SUCCESS
Python Presto/Hive actions-timeline SUCCESS
Python Presto/Hive changes SUCCESS
Python Presto/Hive test-postgres-hive FAILURE Yes
Python Presto/Hive test-postgres-presto FAILURE Yes
Python-Integration actions-timeline SUCCESS
Python-Integration changes SUCCESS
Python-Integration test-mysql FAILURE Yes
Python-Integration test-postgres (current) FAILURE
Python-Integration test-postgres-required FAILURE Yes
Python-Integration test-sqlite FAILURE Yes
Python-Unit changes SUCCESS
Python-Unit event-file SUCCESS
Python-Unit unit-tests (current) SUCCESS
Python-Unit unit-tests-required SUCCESS Yes
Superset App CLI tests test-load-examples FAILURE
Superset Extensions CLI Package Tests actions-timeline SUCCESS
Superset Extensions CLI Package Tests test-superset-extensions-cli-package (current) SUCCESS
Sync requirements for Python dependency PRs sync-python-dep-requirements SKIPPED
Testcontainers actions-timeline SUCCESS
Testcontainers compute-matrix SUCCESS
Testcontainers testcontainers (clickhouse, 10) SUCCESS
Testcontainers testcontainers (cockroachdb, 10) SUCCESS
Testcontainers testcontainers (crate, 10) SUCCESS
Testcontainers testcontainers (databend, 10) SUCCESS
Testcontainers testcontainers (db2, 25) SUCCESS
Testcontainers testcontainers (elasticsearch, 10) SUCCESS
Testcontainers testcontainers (firebird, 10) SUCCESS
Testcontainers testcontainers (mariadb, 10) SUCCESS
Testcontainers testcontainers (monetdb, 10) SUCCESS
Testcontainers testcontainers (mongodb, 10) SUCCESS
Testcontainers testcontainers (mssql, 10) SUCCESS
Testcontainers testcontainers (mysql, 10) SUCCESS
Testcontainers testcontainers (oracle, 15) SUCCESS
Testcontainers testcontainers (postgres, 10) SUCCESS
Testcontainers testcontainers (risingwave, 10) SUCCESS
Testcontainers testcontainers (starrocks, 15) SUCCESS
Testcontainers testcontainers (timescaledb, 10) SUCCESS
Testcontainers testcontainers (trino, 10) SUCCESS
Testcontainers testcontainers (ydb, 10) SUCCESS
Testcontainers testcontainers (yugabytedb, 10) SUCCESS
Translations actions-timeline SUCCESS
Translations babel-extract SUCCESS
Translations frontend-check-translations SUCCESS
Validate All GitHub Actions validate-all-ghas SUCCESS
pre-commit checks actions-timeline SUCCESS
pre-commit checks pre-commit (current) SUCCESS Yes
🎪 Superset Showtime Python Unit Test Results SUCCESS
🎪 Superset Showtime 🎪 Sync PR to desired state SKIPPED

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

The shared repair #44288 has landed at 4c27cbd. Verified that commit is on master and both the complete migration graph and initialized Alembic ScriptDirectory report exactly one head, e2f3a1b9c640. Rebased this PR without conflicts; git range-diff confirms both PR commits are unchanged in content. Ten focused Pinot tests and pre-commit across all five PR files pass.

Published rebased SHA a56733f using force-with-lease against exact prior head 48931bc. Fresh post-repair CI is queued/running and will be monitored through terminal results. No migration workaround, merge, draft conversion or zone movement.

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Final CI ownership result: a56733f76173cf699133c5204c18dfd7a515332c

All applicable CI checks are terminal SUCCESS. Verified 2026-09-15 21:40 UTC: 86 SUCCESS, 10 conditional SKIPPED, 2 informational Netlify NEUTRAL (98 total). 13/13 required checks SUCCESS. No failed, cancelled, action-required, pending or skipped-required checks; all check suites are terminal.

The separate baseline repair #44288 landed on master as 4c27cbd. Verified exactly one Alembic head (e2f3a1b9c640), rebased without conflicts, and lease-pushed this exact head. All 15 formerly failed checks pass on this rebased head, including the CLI, E2E, integration and dev Docker jobs. No inherited failure was waived.

Addressed independent audit feedback by stating the complete pinotdb[sqlalchemy]>=8.0.0,<10.0.0 range in UPDATING.md, metadata and generated docs. Ten focused local tests and pre-commit across all five changed files passed after rebase. No GitHub review threads exist to resolve.

Remaining blocker: human review/approval is required (REVIEW_REQUIRED); the PR is open, non-draft and mergeable. No merge performed. Local and remote SHAs match; worktree is clean and remains in zone-sqlalchemy-2.

Conditional skips were inspected: six frontend subjobs have no frontend file changes; Dependabot approval and requirements-sync jobs do not apply to this human-authored fork PR; Showtime has no requested deployment; docker-compose-image-tag is a master-push-only job. Netlify Header rules and Pages changed are informational neutral results. None of these is a required check.

Full exact-head check rollup (98 checks)
Workflow Check Result Required
External status CodeQL SUCCESS
External status Header rules - superset-docs-preview NEUTRAL
External status Pages changed - superset-docs-preview NEUTRAL
External status Redirect rules - superset-docs-preview SUCCESS
External status codecov/patch SUCCESS
External status codecov/project SUCCESS
External status codecov/project/core-packages-ts SUCCESS
External status codecov/project/core-packages-tsx SUCCESS
External status netlify/superset-docs-preview/deploy-preview SUCCESS
External status zizmor SUCCESS
Auto-approve Dependabot patch bumps Approve patch-level bump SKIPPED
Build & publish docker images actions-timeline SUCCESS
Build & publish docker images changes SUCCESS
Build & publish docker images docker-build (dev) SUCCESS
Build & publish docker images docker-build (lean) SUCCESS
Build & publish docker images docker-build (superset) SUCCESS
Build & publish docker images docker-compose-image-tag SKIPPED
Build & publish docker images setup_matrix SUCCESS
Build & publish docker images verify docker build PY_VER override SUCCESS
Check OpenAPI spec drift check-openapi-spec-drift SUCCESS
Check python dependencies check-python-deps SUCCESS
CodeQL Analyze (javascript) SUCCESS
CodeQL Analyze (python) SUCCESS
CodeQL changes SUCCESS
Dependency Review dependency-review SUCCESS Yes
Dependency Review python-dependency-liccheck SUCCESS
E2E actions-timeline SUCCESS
E2E changes SUCCESS
E2E cypress-matrix (chrome) SUCCESS
E2E cypress-matrix-required SUCCESS Yes
E2E playwright-tests (chromium) SUCCESS
E2E playwright-tests (chromium, /app/prefix) SUCCESS
E2E playwright-tests-required SUCCESS Yes
Enforce single Alembic migration head enforce-single-migration-head SUCCESS Yes
Frontend Build CI (unit tests, linting & sanity checks) actions-timeline SUCCESS
Frontend Build CI (unit tests, linting & sanity checks) bundle-size SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) frontend-build SUCCESS Yes
Frontend Build CI (unit tests, linting & sanity checks) lint-frontend SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) report-coverage SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) sharded-jest-tests SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) test-storybook SKIPPED
Frontend Build CI (unit tests, linting & sanity checks) validate-frontend SKIPPED
Hold Label Check check-hold-label SUCCESS
License Template Check License Check SUCCESS
PR Lint lint-check SUCCESS Yes
Playwright Experimental Tests actions-timeline SUCCESS
Playwright Experimental Tests changes SUCCESS
Playwright Experimental Tests playwright-tests-experimental (chromium) SUCCESS
Playwright Experimental Tests playwright-tests-experimental (chromium, /app/prefix) SUCCESS
Pull Request Labeler Python Unit Test Results SUCCESS
Pull Request Labeler labeler SUCCESS
Python Presto/Hive actions-timeline SUCCESS
Python Presto/Hive changes SUCCESS
Python Presto/Hive test-postgres-hive SUCCESS Yes
Python Presto/Hive test-postgres-presto SUCCESS Yes
Python-Integration actions-timeline SUCCESS
Python-Integration changes SUCCESS
Python-Integration test-mysql SUCCESS Yes
Python-Integration test-postgres (current) SUCCESS
Python-Integration test-postgres-required SUCCESS Yes
Python-Integration test-sqlite SUCCESS Yes
Python-Unit changes SUCCESS
Python-Unit event-file SUCCESS
Python-Unit unit-tests (current) SUCCESS
Python-Unit unit-tests-required SUCCESS Yes
Superset App CLI tests test-load-examples SUCCESS
Superset Extensions CLI Package Tests actions-timeline SUCCESS
Superset Extensions CLI Package Tests test-superset-extensions-cli-package (current) SUCCESS
Sync requirements for Python dependency PRs sync-python-dep-requirements SKIPPED
Testcontainers actions-timeline SUCCESS
Testcontainers compute-matrix SUCCESS
Testcontainers testcontainers (clickhouse, 10) SUCCESS
Testcontainers testcontainers (cockroachdb, 10) SUCCESS
Testcontainers testcontainers (crate, 10) SUCCESS
Testcontainers testcontainers (databend, 10) SUCCESS
Testcontainers testcontainers (db2, 25) SUCCESS
Testcontainers testcontainers (elasticsearch, 10) SUCCESS
Testcontainers testcontainers (firebird, 10) SUCCESS
Testcontainers testcontainers (mariadb, 10) SUCCESS
Testcontainers testcontainers (monetdb, 10) SUCCESS
Testcontainers testcontainers (mongodb, 10) SUCCESS
Testcontainers testcontainers (mssql, 10) SUCCESS
Testcontainers testcontainers (mysql, 10) SUCCESS
Testcontainers testcontainers (oracle, 15) SUCCESS
Testcontainers testcontainers (postgres, 10) SUCCESS
Testcontainers testcontainers (risingwave, 10) SUCCESS
Testcontainers testcontainers (starrocks, 15) SUCCESS
Testcontainers testcontainers (timescaledb, 10) SUCCESS
Testcontainers testcontainers (trino, 10) SUCCESS
Testcontainers testcontainers (ydb, 10) SUCCESS
Testcontainers testcontainers (yugabytedb, 10) SUCCESS
Translations actions-timeline SUCCESS
Translations babel-extract SUCCESS
Translations frontend-check-translations SUCCESS
Validate All GitHub Actions validate-all-ghas SUCCESS
pre-commit checks actions-timeline SUCCESS
pre-commit checks pre-commit (current) SUCCESS Yes
🎪 Superset Showtime 🎪 Sync PR to desired state SKIPPED

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

@rusackas — Amin has assigned you for review. When you have a moment, could you please take a look? Thank you.

@bito-code-review

bito-code-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #53595c

Actionable Suggestions - 0
Additional Suggestions - 1
  • tests/unit_tests/db_engine_specs/test_pinot.py - 1
    • Vacuous contract assertion · Line 45-48
      `sqlalchemy_version in requirement.specifier` passes vacuously when the specifier is empty (`'2.0.52' in SpecifierSet('')` is True for any version). If pinotdb ever relaxes its `sqlalchemy` extra to an unconstrained requirement, this contract assertion silently stops verifying compatibility. Consider asserting `requirement.specifier` is non-empty first.
Review Details
  • Files reviewed - 3 · Commit Range: a31aa6c..a56733f
    • pyproject.toml
    • superset/db_engine_specs/pinot.py
    • tests/unit_tests/db_engine_specs/test_pinot.py
  • Files skipped - 2
    • UPDATING.md - Reason: Filter setting
    • docs/src/data/databases.json - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@aminghadersohi

Copy link
Copy Markdown
Contributor Author

Independent final-readiness sweep at head a56733f76173cf699133c5204c18dfd7a515332c — all applicable CI is terminal green.

Checks: 86 pass, 12 skipped/neutral, 0 fail, 0 pending, 0 cancelled, 0 action-required.
Workflow runs at this exact SHA: 25 total — 22 completed/success, 3 completed/skipped. No zero-job failures and no run left in progress.

Base repair confirmed independently. #44288 landed as 4c27cbd007. Recomputing the full migration graph from origin/master (6cfb33197444cbf74590c2803b6dcc06180439f4) yields 388 revisions and exactly one head, e2f3a1b9c640. All 15 jobs that previously failed on Multiple head revisions are present for given argument 'head' now pass, including the CLI, E2E, integration, Presto/Hive and docker-build (dev) jobs. No failure was waived or suppressed.

Rebase: already applied cleanly onto the repaired base. Diff re-verified intact — same 5 files, +48/−2, and no superset/migrations/ files touched by this PR. No further rebase is required: mergeStateStatus is BLOCKED, not BEHIND, so an up-to-date branch is not a merge condition here.

Review feedback: 0 review threads and 0 formal reviews (confirmed via GraphQL reviewThreads.totalCount / reviews.totalCount). Bito re-reviewed the exact rebased range a31aa6c..a56733f and reported 0 actionable suggestions, with MyPy, Astral Ruff, Whispers and Detect-secrets all successful. Nothing outstanding to address.

Local revalidation on this head: Pinot unit tests pass (7 passed, 3 skipped); pinot = ["pinotdb[sqlalchemy]>=8.0.0, <10.0.0"] intact; worktree clean and local SHA matches the published head exactly.

Dependency claim remains verified directly against PyPI wheel metadata: pinotdb 6.0.0/7.0.0 declare sqlalchemy (>=1.4,<2) under extra == "sqlalchemy"; 8.0.0 is the first release declaring sqlalchemy (>=2.0,<3), unchanged through 9.1.2.

Standing limitation, restated rather than hidden: test_dialect_supports_installed_sqlalchemy uses pytest.importorskip("pinotdb.sqlalchemy"), and pinotdb is not in requirements/development.txt, so that dependency-contract assertion skips rather than executes in unit-tests (current). This matches the existing tests/unit_tests/db_engine_specs/test_datastore.py pattern; adding the driver to dev requirements is deliberately out of scope for this PR.

Only remaining gate is maintainer-only: reviewDecision: REVIEW_REQUIRED. @rusackas is already a requested reviewer.
Exact human action: a Superset committer reviews and approves this PR, then merges it. No branch-side code, rebase or CI work remains.

PR remains OPEN, non-draft and mergeable. Nothing merged, nothing converted to draft.

Resolves a conflict in UPDATING.md where both sides added a new bullet at
the top of the "Next" section. Master added the presto/PyHive 0.7 note
(apache#44285); this branch adds the Pinot driver note. Both entries are kept.

@rusackas rusackas 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.

Same pattern as the Databricks fix, selecting the extra that actually declares the SQLAlchemy 2 requirement and pinning it down with the socket-free dialect tests across all three schemes. LGTM!

@aminghadersohi
aminghadersohi merged commit ca7cdfc into apache:master Sep 22, 2026
98 checks passed
@bito-code-review

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped – PR Already Merged

Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.
No action is needed if you didn't intend to review it. To get a review, you can type /review in a comment and save it

villebro pushed a commit that referenced this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants