public class HiveSortMergeRule
This rule will merge two HiveSortLimit operators.
It is applied when the top match is a pure limit operation (no sorting).
If the bottom operator is not synthetic and does not contain a limit,
we currently bail out. Thus, we avoid a lot of unnecessary limit operations
in the middle of the execution plan that could create performance regressions.