Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Decimal256 display is not correct #221

Closed
b41sh opened this issue Sep 12, 2023 · 0 comments · Fixed by #290
Closed

bug: Decimal256 display is not correct #221

b41sh opened this issue Sep 12, 2023 · 0 comments · Fixed by #290

Comments

@b41sh
Copy link
Member

b41sh commented Sep 12, 2023

Decimal256 display padding zero is missed.

root@localhost:18000/default> select 0.0000000000000000000000000000000001234;

SELECT
  0.0000000000000000000000000000000001234

┌─────────────────────────────────────────┐
│ 0.0000000000000000000000000000000001234 │
│             Decimal(37, 37)             │
├─────────────────────────────────────────┤
│ 0.0000000000000000000000000000000001234 │
└─────────────────────────────────────────┘
1 row read in 0.020 sec. Processed 1 row, 1 B (51.04 row/s, 51 B/s)

root@localhost:18000/default> select 0.0000000000000000000000000000000000001234;

SELECT
  0.0000000000000000000000000000000000001234

┌────────────────────────────────────────────┐
│ 0.0000000000000000000000000000000000001234 │
│               Decimal(40, 40)              │
├────────────────────────────────────────────┤
│ 0.1234                                     │
└────────────────────────────────────────────┘
1 row read in 0.019 sec. Processed 1 row, 1 B (51.46 row/s, 51 B/s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant