Skip to content
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

Feature Request: Prepend Query Metadata in SQL Comment #95

Open
tema-popov opened this issue Aug 22, 2022 · 0 comments
Open

Feature Request: Prepend Query Metadata in SQL Comment #95

tema-popov opened this issue Aug 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tema-popov
Copy link

Hi! It is not possible right now to know, which Metabase user made a particular query to Clickhouse, as the Metabase Clickhouse driver uses one user for the connection. It would be really helpful to have query metadata to debug problematic queries.

As I understand, it is already implemented for some drivers:
metabase/metabase#2386

I see it as a SQL comment with the user email and question id, which could be obtained using Clickhouse system.query_log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants