Repository navigation
fix(mssql): read descriptions from the right database, honour encryption per driver, bound query timeouts (#32574) - #33924
Conversation
…ion per driver, bound query timeouts (#32574) Backport of #32574 to 2.0. Resolved against 2.0 rather than taken wholesale, because the squashed commit carries context from changes 2.0 does not have: - the bundled UI schema copies under ui/src/jsons/ingestionSchemas and ui/public/jsons/connectionSchemas are deleted on 2.0, so they stay deleted; the description edit reaches SSIS and WhereScape through the $ref they already have on mssqlConnection.json - MSSQL_GET_QUERY_STORE_STATE keeps 2.0's own statement, since the extra column belongs to a different change - the GetTables/GetViews probe tests and the `replace` import they need come from #32014, which is not on 2.0, so neither is brought along 145 unit tests pass across the MSSQL and SSL suites.
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved🔴 High risk · MSSQL driver changes alter transport encryption enforcement and query bounds across workflows. Backport of MSSQL connector fixes to the 2.0 branch: descriptions now read from the correct database, encryption is honoured per driver, and query timeouts are bounded. Three changes were deliberately resolved for 2.0 compatibility (deleted UI schema copies, kept the existing query store state statement, and omitted probe tests from a different PR). Verified against 145 unit tests and 11 container tests. No issues found. OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 830 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 47m 55s ⏱️ Max setup 4m 6s · max shard execution 18m 12s · max shard-job elapsed before upload 21m 19s · reporting 9s 🌐 206.51 requests/attempt · 2.47 app boots/UI scenario · 25.92% common-shard skew Optimization targets still in progress:
🟡 1 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|
|



Backport of #32574 to
2.0.Connector-local fixes from the MSSQL connector audit: descriptions were read from the previously connected database, encryption was applied only on pyodbc, no driver bounded its queries, unique constraints were dropped for every table, and indexed views were typed as plain views. The original PR has the full description.
Resolved against 2.0, not taken wholesale
The squashed commit carries context from changes 2.0 does not have, so three things were resolved deliberately:
ui/src/jsons/ingestionSchemas,ui/public/jsons/connectionSchemas) stay deleted$refthey already have onmssqlConnection.json.MSSQL_GET_QUERY_STORE_STATEkeeps 2.0's statementreplaceimport they need, are not brought alongVerified on this branch
The connector changes appear behaviorally safe to merge, but the explicit Python test-style requirement must be satisfied first.
Findings
Summary
The backport switches databases before loading MSSQL descriptions, reflects unique constraints and indexed views, adds driver-specific TLS handling and query timeouts, and updates connector documentation and tests.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR C[MSSQL service configuration] --> S[Driver-specific TLS setup] S --> E[Engine with query timeout] E --> D[Switch to target database] D --> M[Load descriptions] D --> R[Reflect constraints and views] M --> O[Catalog metadata] R --> OReviews (1) · Last reviewed commit: "fix(mssql): read descriptions from the r..."