Closed
Description
Is your feature request related to a problem? Please describe.
Prometheus has a feature flag for experimental promql functions https://prometheus.io/docs/prometheus/latest/feature_flags/#experimental-promql-functions. Certain functions and aggregations are only available if the feature flag is enabled.
Cortex currently doesn't expose those promql functions as there is no way to enable the feature flag.
Current experimental functions:
- sort_by_label
- sort_by_label_desc
- mad_over_time
- info
Experimental aggregations:
- limitk
- limit_ratio
Describe the solution you'd like
Expose the feature flag in the query engine and implement those functions/aggregations if necessary.
It would be nice to also cover those functions in fuzz test to ensure correctness.