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
Is your feature request related to a problem?
Yes. PPL lacks SPL’s median function median(<field>).
median(<field>) and percentile50(<field>) are functionally equivalent - they both return the 50th percentile value of the specified field.
However, there are some subtle differences:
median() is specifically designed for finding the middle value and may have slight performance optimizations for this exact use case.
percentile50() is part of the more general percentile function family, which can calculate any percentile (1-99)
In practice, both will give you the same result for the 50th percentile calculation. The choice between them is often a matter of code readability and intent - median() makes it immediately clear you want the median value, while percentile50() shows you're working with percentile calculations.
What solution would you like?
Support this shortcut and rewrite it to perc50(<value>), which is already supported with pushdown optimization.
changed the title [-][FEATURE] Add support for `median(<value>)`[/-][+][FEATURE] Add support for `median(<value>)` in `stats` command[/+]on Sep 4, 2025
changed the title [-][FEATURE] Add support for `median(<value>)` in `stats` command[/-][+][FEATURE] Add support for `median(<value>)`[/+]on Sep 4, 2025
Activity
[-][FEATURE] Add support for median(<value>)[/-][+][FEATURE] Add support for `median(<value>)`[/+][-][FEATURE] Add support for `median(<value>)`[/-][+][FEATURE] Add support for `median(<value>)` in `stats` command[/+][-][FEATURE] Add support for `median(<value>)` in `stats` command[/-][+][FEATURE] Add support for `median(<value>)`[/+]RyanL1997 commentedon Sep 9, 2025
#4234 merged