Repository navigation
feat(clickhouse): migrate legacy clickhouse connections to clickhouse-connect #44283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 8 commits
f39d6d1
602db41
8403e90
eba10e7
0127f20
6b9ef67
cccbd02
8247f9e
0c3a956
e906ddf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2737,6 +2737,10 @@ def engine_context_manager( # pylint: disable=unused-argument | |
| "httpuritype", | ||
| }, | ||
| } | ||
| # The lookup is keyed by engine spec ``engine``: ClickHouse connections use | ||
| # ``clickhouse`` (clickhouse-sqlalchemy) or ``clickhousedb`` (clickhouse-connect), | ||
| # and both drivers reach the same server functions. | ||
| DISALLOWED_SQL_FUNCTIONS["clickhousedb"] = set(DISALLOWED_SQL_FUNCTIONS["clickhouse"]) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is the only thing keeping rewritten connections under the ClickHouse function denylist, but nothing fails if it is dropped: the existing denylist tests either patch the config or use PostgreSQL. Could a test run an enforcement path with |
||
|
|
||
| # Per-engine blocklist of system catalog tables/views that should not be queried. | ||
| # Prevents information disclosure through system catalog access. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small one,
0.13.0is well below what theclickhouseextra inpyproject.tomlpins onmaster(>=1.11.0, <2.0), so pointing folks at the extra seems safer: