bottom_k
should not include nulls if the column contains at least k
valid elements
#16748
Labels
A-ops
Area: operations
accepted
Ready for implementation
enhancement
New feature or an improvement of an existing feature
Milestone
In discussing #15238, we decided that the behavior for
top_k
/bottom_k
with regards to nulls should be:k
valid elements, the result will not contain any nullsk
valid elements, nulls from the original column are used to reachk
resulting elements.k
is larger than the size of the column, the result will be all the elements of the original column. We do not 'pad' the result with nulls until we havek
elements.This is currently the case for
top_k
, but not forbottom_k
. This behavior should be updated for 1.0.0.The text was updated successfully, but these errors were encountered: