From e295763686f9592976e551e504fdad1d2a3a566d Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Tue, 14 Jan 2020 10:34:52 +0200 Subject: [PATCH] SQL: Fix incomplete registration of geo NamedWritables --- .../java/org/elasticsearch/xpack/sql/session/Cursors.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/session/Cursors.java b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/session/Cursors.java index fd7ab2990da16..1141d665e87bf 100644 --- a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/session/Cursors.java +++ b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/session/Cursors.java @@ -9,7 +9,6 @@ import org.elasticsearch.common.collect.Tuple; import org.elasticsearch.common.io.stream.NamedWriteable; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; -import org.elasticsearch.xpack.ql.expression.literal.Literals; import org.elasticsearch.xpack.ql.util.StringUtils; import org.elasticsearch.xpack.sql.SqlIllegalArgumentException; import org.elasticsearch.xpack.sql.common.io.SqlStreamInput; @@ -20,6 +19,7 @@ import org.elasticsearch.xpack.sql.execution.search.extractor.SqlBucketExtractors; import org.elasticsearch.xpack.sql.execution.search.extractor.SqlHitExtractors; import org.elasticsearch.xpack.sql.expression.function.scalar.Processors; +import org.elasticsearch.xpack.sql.expression.literal.SqlLiterals; import org.elasticsearch.xpack.sql.plugin.TextFormatterCursor; import java.io.IOException; @@ -57,7 +57,7 @@ public static List getNamedWriteables() { entries.addAll(SqlBucketExtractors.getNamedWriteables()); // and custom types - entries.addAll(Literals.getNamedWriteables()); + entries.addAll(SqlLiterals.getNamedWriteables()); return entries; }