metabase-clickhouse-driver icon indicating copy to clipboard operation
metabase-clickhouse-driver copied to clipboard

Feature Request: Prepend Query Metadata in SQL Comment

Open tema-popov opened this issue 3 years ago • 0 comments

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

tema-popov avatar Aug 22 '22 09:08 tema-popov