Skip to content

Function changeYear is allergic to nanosecond-precision DateTime64 inputs #72019

Closed

Description

@rschu1ze
SELECT changeYear(toDateTime64('2024-11-17 10:11:12.12345678', 9), 2023);

-- Decimal math overflow: In scope SELECT changeYear(toDateTime64('2024-11-17 10:11:12.12345678', 9), 2023). (DECIMAL_OVERFLOW)

@cucumber95

Version info

Activity

  1. added
    potential bug
    on Nov 17, 2024
  2. changed the title [-]Function `changeDate` is allergic to nanosecond-precision DateTime64 inputs[/-] [+]Function `changeYear` is allergic to nanosecond-precision DateTime64 inputs[/+] on Nov 17, 2024
  3. added
    bug
    and removed
    potential bug
    on Nov 19, 2024
  4. added a commit that references this issue on Jul 2, 2026
    a503343
  5. added
    comp-regular-function
    on Jul 2, 2026
  6. added a commit that references this issue on Sep 11, 2026
    49c9675
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

    bugcomp-regular-function

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions