metabase-clickhouse-driver
metabase-clickhouse-driver copied to clipboard
Feature Request: Prepend Query Metadata in SQL Comment
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: https://github.com/metabase/metabase/issues/2386
I see it as a SQL comment with the user email and question id, which could be obtained using Clickhouse system.query_log