ClickHouse / ClickHouse/clickhouse-connect

How to intercept all sql queries?

Open
#419 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
521
Forks
159
Avg merge
1d 7h
Merged PRs (30d)
46

Description

I want to track all queries that go through clickhouse_connect, including “service” requests.

In driver.client.Client._init_common_settings there are some “service” queries that I cannot intercept. Is there any way to intercept any queries that go through clickhouse_connect without rewriting driver.client.Client?

Contributor guide

Open the contributing guide

Research direction

Start with driver.client.Client._init_common_settings and trace how its service queries are issued compared with regular queries. Determine whether clickhouse_connect exposes a supported interception point without rewriting driver.client.Client; done means identifying that entry point or documenting that the capability is not currently available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.