SQL: Fix incorrect merging of #35852

This commit is contained in:
Costin Leau 2018-11-26 12:41:43 +02:00
parent 633a562208
commit cd822b7ca8
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class SysTypesTests extends ESTestCase {
private Tuple<Command, SqlSession> sql(String sql) {
EsIndex test = new EsIndex("test", TypesTests.loadMapping("mapping-multi-field-with-nested.json", true));
Analyzer analyzer = new Analyzer(new FunctionRegistry(), IndexResolution.valid(test), TimeZone.getTimeZone("UTC"), null);
Command cmd = (Command) analyzer.analyze(parser.createStatement(sql), true);
Command cmd = (Command) analyzer.analyze(parser.createStatement(sql), false);
IndexResolver resolver = mock(IndexResolver.class);
SqlSession session = new SqlSession(null, null, null, resolver, null, null, null, null);