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
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.
Describe the bug
round
accepts two arguments, but is also defined as a unary function. The second parameter is ignored.To Reproduce
See above
Expected behavior
I expect the behavior to be consistent with Postgres
round(v numeric, s int)
. User guide will also need updating.Additional context
Related to #2420
The text was updated successfully, but these errors were encountered: