Support nth_element
for window functions
#11158
Merged
nth_element
for window functions
#11158