You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scalar function round ignores second parameter #4191
we can unfold the round function in the logical plan stage and don't need to modify the physical stage.
One concern here is that Decimal type might be better than Float type because we've found some corner cases in floating point multiplication and division: #4072
I've pushed a draft PR (#4234) to unfold the round function with 2 args in logical plan.
But it seems like not a good solution because it would reduce the extensibility of the logical optimizer.
Based on Andy's comment (#4234 (comment)) we should either support this or return an error in the physical plan.
Activity
HaoYang670 commentedon Nov 15, 2022
Not sure, but I wonder if we could support this in logical phase.
Given the following 2 lemmas:
we can unfold the
roundfunction in the logical plan stage and don't need to modify the physical stage.One concern here is that
Decimaltype might be better thanFloattype because we've found some corner cases in floating point multiplication and division: #4072DDtKey commentedon Jan 22, 2023
Just wondering if anyone is working on it? It's relevant for current version. I see the same behaviour
HaoYang670 commentedon Jan 22, 2023
I've pushed a draft PR (#4234) to unfold the
roundfunction with 2 args in logical plan.But it seems like not a good solution because it would reduce the extensibility of the logical optimizer.
Based on Andy's comment (#4234 (comment)) we should either support this or return an error in the physical plan.
No, I guess.