facebook/presto — pull request #1170 by alexliu68 (2014-04-01 00:34:02+00:00)
Title: Support multiple ranges in domain when retrieving partitions

It make the selection on full partition keys query directly retrieving the result using partition key query instead of token range query then filter out at Presto side.

e.g. select * from test where (a=1 or a=2 or a=3) and (b=3 or b=4)

where a and b is the partition keys.
the direct queries are
select * from test where a =1 an b =3
select * from test where a =1 an b =3
select * from test where a =1 an b =3