assertEquals(3 + offset, plan.getContext().getScanRanges().getBoundPkColumnCount());
plan = stmt.compileQuery("select * from my_table_mt_view where (pkcol3, pkcol4) > ('0', '0') and pkcol1 = '000000000000000'");
assertEquals(2 + offset, plan.getContext().getScanRanges().getBoundPkColumnCount());
plan = stmt.compileQuery("select * from my_table_mt_view where (pkcol1, pkcol2, pkcol3) < ('0', '0', '0')");
assertEquals(4 + offset, plan.getContext().getScanRanges().getBoundPkColumnCount());
plan = stmt.compileQuery("select * from my_table_mt_view where (pkcol1, pkcol2, pkcol3) < ('9', '9', '9') and (pkcol1, pkcol2) > ('0', '0')");
assertEquals(4 + offset, plan.getContext().getScanRanges().getBoundPkColumnCount());
plan = stmt.compileQuery("select * from my_table_mt_view where pkcol1 = 'a' and pkcol2 = 'b' and pkcol3 = 'c' and (pkcol1, pkcol2) < ('z', 'z')");
assertEquals(4 + offset, plan.getContext().getScanRanges().getBoundPkColumnCount());
plan = stmt.compileQuery("select * from my_table_mt_view where (pkcol2, pkcol3) > ('0', '0') and pkcol1 = '000000000000000'");
assertEquals(4 + offset, plan.getContext().getScanRanges().getBoundPkColumnCount());