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

Don't display decimals in scientific notation in CLI #4722

Closed
big-andy-coates opened this issue Mar 6, 2020 · 0 comments
Closed

Don't display decimals in scientific notation in CLI #4722

big-andy-coates opened this issue Mar 6, 2020 · 0 comments
Assignees
Labels

Comments

@big-andy-coates
Copy link
Contributor

At the moment, decimals can be displayed in the CLI using scientific notation, i.e. 10 is rendered as 1E+1. This is confusing some users.

Ideally, we could make this configurable at the session level. However, that's more work, and something for a future task.

For now, it should be sufficient to switch the server to no use scientific notation when serializing decimals in HTTP responses.

@big-andy-coates big-andy-coates self-assigned this Mar 6, 2020
big-andy-coates added a commit to big-andy-coates/ksql that referenced this issue Mar 6, 2020
fixes: confluentinc#4722

This change sees decimals being returned by the rest api avoiding use of scientific notation. For example, a decimal such as `100` will be returned as `100` and not `1e+2`.

The CLI just displays what it given.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant