From 633a562208b23d31c9c998f678be3c8e79c7e663 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Mon, 26 Nov 2018 12:35:46 +0200 Subject: [PATCH] SQL: Fix incorrect merging of #35852 --- .../xpack/sql/plan/logical/command/sys/SysTypesTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plan/logical/command/sys/SysTypesTests.java b/x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plan/logical/command/sys/SysTypesTests.java index 56dfdce9dbecf..78433925dbcf1 100644 --- a/x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plan/logical/command/sys/SysTypesTests.java +++ b/x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/plan/logical/command/sys/SysTypesTests.java @@ -32,11 +32,11 @@ public class SysTypesTests extends ESTestCase { private Tuple 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")); + Analyzer analyzer = new Analyzer(new FunctionRegistry(), IndexResolution.valid(test), TimeZone.getTimeZone("UTC"), null); Command cmd = (Command) analyzer.analyze(parser.createStatement(sql), true); IndexResolver resolver = mock(IndexResolver.class); - SqlSession session = new SqlSession(null, null, null, resolver, null, null, null); + SqlSession session = new SqlSession(null, null, null, resolver, null, null, null, null); return new Tuple<>(cmd, session); }