Is your feature request related to a problem?
When query using PPL, we find
source=opensearch_dashboards_sample_data_logs |stats COUNT() as cnt by span(timestamp, 1d), response could work but source=opensearch_dashboards_sample_data_logs |stats COUNT() as cnt by response, span(timestamp, 1d) fails. It is unreasonable because the order should not influence the execution result. It works well if span is not included
What solution would you like?
Support flexible order when including span