Repository navigation
Commit 0eae123
fix(clickhouse): chain migration off master head and address review
- Reparent onto master's single head b8f3a2c91d64. #44288 merged the two
former parents into e2f3a1b9c640, and several merges have since stacked
on top of it, so the old tuple re-forked the graph.
- HTTP rows: the legacy driver ignores `secure` and defaults to 8123 even
for `protocol=https`, so drop stray `secure` (no duplicates / no silent
plaintext->TLS flip) and pin 8123 when `secure=true` is introduced
without a port (clickhouse-connect would otherwise pick 8443).
- Native rows carrying TLS (`secure=true`) are skipped instead of being
pointed at the plaintext HTTP port.
- Parameters the drivers don't share (endpoint, timeout, ca_certs,
header__*, a CA-path `verify`, ...) are no longer carried verbatim; the
row stays on the legacy driver and its id is logged for the operator.
- Exact rollback: upgrade records the original URI and a fingerprint of
the migrated state in a migration-owned table; downgrade restores only
unchanged converted rows, then drops the table (Databricks precedent).
- Add `clickhousedb` to DISALLOWED_SQL_FUNCTIONS so the ClickHouse
denylist follows rewritten rows.
- Document the change in UPDATING.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 91f997c commit 0eae123
4 files changed
Lines changed: 455 additions & 332 deletions
File tree
- superset
- migrations/versions
- tests/unit_tests/migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
53 | 68 | | |
54 | 69 | | |
55 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2694 | 2694 | | |
2695 | 2695 | | |
2696 | 2696 | | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
2697 | 2701 | | |
2698 | 2702 | | |
2699 | 2703 | | |
| |||
0 commit comments