-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cubestore can't use round function because of type coercion error. Support 2 argument ROUND(num, precision)
.
#6179
Comments
@MrSpider |
Thanks for the information. It seems arrow datafusion added that functionality some time ago, but cubestore still uses an older version of the datafusion library, so hopefully sometime in the future it will be usable with two arguments. |
Getting Round `ROUND((${CUBE.spend}) / CAST(${CUBE.clicks} AS FLOAT64), 2)
|
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. |
ROUND(num, precision)
.
Describe the bug
To Reproduce
SELECT ROUND(1, 2);
Expected behavior
Cubestore can use round function without errors.
Version:
Latest version (0.31.62)
Additional context
I tried to cast the arguments to a variety of different types, but the error message is always the same. I was not able to cast the input types to Float32 because
float
,real
anddouble
all result in Float64 when used.Above is the minimal reproduction of the error we encountered, but our use case is to round the calculation of two different measurements inside a rollup join.
The text was updated successfully, but these errors were encountered: