Skip to content

Commit

Permalink
fix JSON as string, for #672
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Nov 25, 2024
1 parent 99d42aa commit 7aef56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/clickhouse/init_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PARTITION BY toDate(_time)
ORDER BY (cluster_name, bu, pod_namespace, pod_name, container_name, _time);

INSERT INTO default.test_logs_with_complex_labels(_raw, _time, _map)
SELECT '{"cluster_name":"test' || toString(number) || '","host":"test","pod_namespace":"test","pod_name":"test","container_name":"test"' || toString(number) || ',"container_image":"test","stream":"test","source":"test","source_type":"test","namespace_labels":{"business-unit-code":"test"}}' AS _raw,
SELECT '{"cluster_name":"test' || toString(number) || '","host":"test","pod_namespace":"test","pod_name":"test","container_name":"test' || toString(number) || '","container_image":"test","stream":"test","source":"test","source_type":"test","namespace_labels":{"business-unit-code":"test"}}' AS _raw,
now64() - INTERVAL number SECOND _time,
map('map_key' || toString(number),'map_value' ||toString(number)) AS _map
FROM numbers(100);
Expand Down

0 comments on commit 7aef56a

Please sign in to comment.