Altinity / clickhouse-grafana

Altinity Grafana datasource plugin for ClickHouse®
MIT License
726 stars 121 forks source link

Expand Logs details failed when SELECT * + Map(String,String) try to display in log details labels as scalar type #672

Closed Slach closed 1 day ago

Slach commented 4 days ago

Simple table, which contains Map

CREATE TABLE grafana.test_logs_map(
 _time DateTime64(3), _raw String, _map Map(String,String)
) ENGINE=MergeTree ORDER BY _time;

Logs visualization SELECT _time, _raw, _map FROM grafana.test_logs_map show log panel image

but failed to show log details image

but if we change field order (_raw have String scalar type and can be successfully interpreted as log detail label everything works fine

image

Slach commented 4 days ago

@lunaticusgreen also something wrong with Context window for this use case

image