Skip to content

Strange errors on Decimal type #75451

Closed

Description

@PedroTadim

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

Activity

  1. added
    fuzz
    potential bug
    unexpected behaviour
    on Feb 3, 2025
  2. added a commit that references this issue on Feb 5, 2026
    e7311fa
  3. added a commit that references this issue on Mar 5, 2026
    f5c9332
  4. added
    comp-regular-function
    on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-regular-functionfuzzpotential bugunexpected behaviour

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions