public void testOrFilter() throws SQLException {
String tenantId = "000000000000001";
String keyPrefix = "foo";
int aInt = 2;
String query = "select * from atable where organization_id=? and (substr(entity_id,1,3)=? or a_integer=?)";
SQLParser parser = new SQLParser(query);
SelectStatement statement = parser.parseQuery();
List<Object> binds = Arrays.<Object>asList(tenantId, keyPrefix, aInt);
Scan scan = new Scan();
PhoenixConnection pconn = DriverManager.getConnection(getUrl(), TEST_PROPERTIES).unwrap(PhoenixConnection.class);
ColumnResolver resolver = FromCompiler.getResolver(statement, pconn);
StatementContext context = new StatementContext(statement, pconn, resolver, binds, scan);