@Test public void testLookupKeyElementComparable() throws Exception { QueryMetadataInterface metadata = exampleMetadata2(); String sql = "SELECT lookup('test.group', 'e2', 'e3', convert(e2, blob)) AS x FROM test.group"; Command command = QueryParser.getQueryParser().parseCommand(sql); QueryResolver.resolveCommand(command, metadata); ValidatorReport report = Validator.validate(command, metadata); assertEquals("Non-comparable expression of type blob cannot be used as LOOKUP key columns: test.\"group\".e3.", report.toString()); }
public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; } }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }  }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }  static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata); static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata, AbstractValidationVisitor visitor); }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }  static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata); static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata, AbstractValidationVisitor visitor);  }