Locally querying a Map(LowCardinality(String), String)) inside a Tuple leads to segfault in clickhouse server #63863
Labels
bug
Confirmed user-visible misbehaviour in official release
comp-lowcardinality
LowCardinality data type
crash
Crash / segfault / abort
major
Describe what's wrong
Locally querying a Map(LowCardinality(String, String)) containing more than 254 keys leads to segmentation fault in the server when the table contains around 4000 rows or more.
Does it reproduce on the most recent release?
head (24.5.1.1106)
: https://fiddle.clickhouse.com/6d680e44-3828-42d3-8ad2-fff8209dce4c24.4.1.2088
: https://fiddle.clickhouse.com/65d0fb52-ce1c-4e41-8c5f-2fabfcf7033726.8.14.6
: https://fiddle.clickhouse.com/c6f7c8ab-660e-4c4f-b95e-39d8407dc950How to reproduce
clickhouse client --stacktrace --queries-file poc.sql
Both changing event_data to Map(String, String) and moving event_data out of the winlog Tuple prevent the error from happening. The ingested URL contains 4K rows of random data and is publicly accessible.
Expected behavior
Server should not segfault.
Error message and/or stacktrace
Additional context
Data was generated with the following script:
Possibly related to #63859 as it shares the same table schema.
The text was updated successfully, but these errors were encountered: