Skip to content

nanvl incorrectly rounds on integer input #22567

Closed

Description

@neilconway

Describe the bug

> select nanvl(16777217, 1), nanvl(16777217.0, 1);
+---------------------------------+-----------------------------------+
| nanvl(Int64(16777217),Int64(1)) | nanvl(Float64(16777217),Int64(1)) |
+---------------------------------+-----------------------------------+
| 16777216.0                      | 16777217.0                        |
+---------------------------------+-----------------------------------+
1 row(s) fetched.
Elapsed 0.002 seconds.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on May 27, 2026
  2. neilconway commented on May 27, 2026

    @neilconway
    ContributorAuthor

    take

  3. added a commit that references this issue on Jun 10, 2026
    8bbc460
  4. added a commit that references this issue on Jun 11, 2026
    adbcfd2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions