Trimming parenthesis leads to bugs with distributed query evaluation because Prometheus does not properly stringify subquery expressions when they are not wrapped.
For example, the query max_over_time((bar/bar)[30s:15s]) gets transformed into max_over_time(bar/bar[30s:15s]).
Trimming parenthesis leads to bugs with distributed query evaluation because Prometheus does not properly stringify subquery expressions when they are not wrapped.
For example, the query
max_over_time((bar/bar)[30s:15s])
gets transformed intomax_over_time(bar/bar[30s:15s])
.