Repository navigation
Description
Describe the bug
On v25.12, the function toIntervalMillisecond doesn't throw error on Nullable(Decimal) on an empty table, while on v24.12, it does. At the same time the error message:
DB::Exception: Received from localhost:9000. DB::Exception: Illegal column Decimal64/N2DB15DataTypeDecimalINS_7DecimalIlEEEE of first argument of function toIntervalMillisecond
is confusing for the Decimal type. Is the unmangled C++ expected? This is because on v24.11 the error message is clear:
DB::Exception: Received from localhost:9000. DB::Exception: Illegal column Decimal64 of first argument of function toIntervalMillisecond
How to reproduce
Run Fiddle for v25.1: https://fiddle.clickhouse.com/c105932f-0291-46cb-8f49-ec18d0fc8709 -- error on second query
vs v24.12 https://fiddle.clickhouse.com/d341bbe3-88cd-4484-ad83-4d74ef048294 -- error on first query
vs v24.11 https://fiddle.clickhouse.com/02f6f4c4-eefa-4857-9d72-83f9d3a88490 -- clear error message on first query
Error message and/or stacktrace
No response
Version info
- Resolved by: Fix Decimal to Interval conversion: catch error at type resolution time #96111
- Merged into:
26.2.1.297
Activity
Fix Decimal to Interval conversion: catch error at type resolution time
Fix Decimal to Interval conversion: catch error at type resolution time