Patch for DRILL-705

Currently only supports partitioning/ordering, not yet preceding or
after offsets