}
@Test public void testDefect9917() throws Exception{
QueryMetadataInterface metadata = FakeMetadataFactory.example1Cached();
String sql = "SELECT lookup('pm1.g1', 'e1a', 'e2', e2) AS x, lookup('pm1.g1', 'e4', 'e3', e3) AS y FROM pm1.g1"; //$NON-NLS-1$
Command command = new QueryParser().parseCommand(sql);
try{
QueryResolver.resolveCommand(command, metadata);
fail("Did not get exception"); //$NON-NLS-1$
}catch(QueryResolverException e){
//expected
}
sql = "SELECT lookup('pm1.g1a', 'e1', 'e2', e2) AS x, lookup('pm1.g1', 'e4', 'e3', e3) AS y FROM pm1.g1"; //$NON-NLS-1$
command = new QueryParser().parseCommand(sql);
try{
QueryResolver.resolveCommand(command, metadata);
fail("Did not get exception"); //$NON-NLS-1$
}catch(QueryResolverException e){
//expected