Skip to content

[bug]: Lose numeric zeros when rounding in duckdb #309

@JelteF

Description

@JelteF

Description

create table t(a numeric);
insert into t values (1.8000), (1.346);
select round(a, 2) from t;

With PG execution this returns:

 round
───────
  1.80
  1.35

With DuckDB execution this returns:

 round
───────
   1.8
  1.35

So we somehow lose the trailing 0 after rounding to two decimals. This causes differences in TPCDS output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions