Repository navigation
fix(pinot): require the SQLAlchemy 2 driver extra - #44287
Conversation
Code Review Agent Run #2f4c33Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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 ( |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
The shared master Alembic startup blocker is isolated in ready PR #44288 ( 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. |
|
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. |
|
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. |
|
Final CI audit at head All 15 failures were inspected individually. 12 execution jobs ( The remaining 3 ( Independently recomputed from No rebase performed: this PR is Coordination hazard worth flagging before either lands: #44288 ( Exact human action required (maintainer-only):
Dependency claim re-verified directly against PyPI metadata: pinotdb Known limitation, stated plainly: Nothing merged, nothing drafted, no migration workaround folded into this PR. |
Exact-head CI checkpoint:
|
| 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 |
48931bc to
a56733f
Compare
|
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. |
Final CI ownership result:
|
| 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 |
|
@rusackas — Amin has assigned you for review. When you have a moment, could you please take a look? Thank you. |
Code Review Agent Run #53595cActionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
Independent final-readiness sweep at head Checks: 86 pass, 12 skipped/neutral, 0 fail, 0 pending, 0 cancelled, 0 action-required. Base repair confirmed independently. #44288 landed as Rebase: already applied cleanly onto the repaired base. Diff re-verified intact — same 5 files, +48/−2, and no Review feedback: 0 review threads and 0 formal reviews (confirmed via GraphQL Local revalidation on this head: Pinot unit tests pass (7 passed, 3 skipped); Dependency claim remains verified directly against PyPI wheel metadata: pinotdb Standing limitation, restated rather than hidden: Only remaining gate is maintainer-only: 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
left a comment
There was a problem hiding this comment.
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!
…eration apache#44509 and CI fixes)
|
Bito Automatic Review Skipped – PR Already Merged |
(cherry picked from commit ca7cdfc)
SUMMARY
Select
pinotdb[sqlalchemy]>=8.0.0,<10.0.0instead of barepinotdb>=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://, andpinot+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<2constraint.pytest -q tests/unit_tests/db_engine_specs/test_pinot.py— 10 passed. Independently rerun; final pinned-greenlet run also10.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