DRILL-1063: Fix bug in merge join when value is repeating across batch boundary