apache / drill

Apache Drill is a distributed MPP query layer for self describing data
https://drill.apache.org/
Apache License 2.0
1.93k stars 980 forks source link

DRILL-8434: Add Median Function #2803

Closed cgivre closed 1 year ago

cgivre commented 1 year ago

DRILL-8434: Add Median Function

Description

Adds a UDF to calculate the median of a column.

This PR also removes the Deprecated tag from the ObjectHolder since that is in wide usage throughout Drill and we have no plans or work to refactor that any time soon.

Usage: median(n)

Documentation

See above...

Testing

Added unit tests

cgivre commented 1 year ago

@jnturton I reverted the deprecation for this. Any other comments?