A Sort Operator is pushed down to Druid if all its order expressions can be pushed down.
A Sort Operator is pushed down to Druid if all its order expressions can be pushed down. An order expression is pushed down if it is on an Expression that is already pushed to Druid, or if it is an Alias expression whose child has been pushed to Druid.
A Limit Operator above a Sort is always pushed down to Druid. The limit value is set on the LimitSpec of the GroupByQuerySpec