ClickHouse/tests/queries/0_stateless/02481_i43247_ubsan_in_minmaxany.sql
2022-11-22 13:57:05 +01:00

8 lines
693 B
SQL

-- https://github.com/ClickHouse/ClickHouse/issues/43247
SELECT finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)',
'AggregateFunction(min, String)')); -- { serverError CANNOT_READ_ALL_DATA }
-- Value from hex(minState('0123456789012345678901234567890123456789012345678901234567890123')). Size 63 + 1 (64)
SELECT finalizeAggregation(CAST(unhex('4000000030313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233'),
'AggregateFunction(min, String)'));