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

Implement round(v numeric, s int) #13964

Open
hlcianfagna opened this issue Apr 14, 2023 · 0 comments · May be fixed by #13965
Open

Implement round(v numeric, s int) #13964

hlcianfagna opened this issue Apr 14, 2023 · 0 comments · May be fixed by #13965

Comments

@hlcianfagna
Copy link
Contributor

hlcianfagna commented Apr 14, 2023

Problem Statement

PostgreSQL and some competitors have a round function that accepts a second parameter indicating a desired number of decimal places.
Came across a company that has queries using this syntax and they need to rework them to work with CrateDB.

Possible Solutions

Implement the function as in https://www.postgresql.org/docs/8.1/functions-math.html

Considered Alternatives

  • UDF
  • more complex expression like round (v *100)/100.0
@proddata proddata linked a pull request Apr 14, 2023 that will close this issue
5 tasks
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