Skip to content

Commit

Permalink
SQL: Fix incomplete registration of geo NamedWritables
Browse files Browse the repository at this point in the history
  • Loading branch information
costin committed Jan 14, 2020
1 parent dd30481 commit e295763
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -57,7 +57,7 @@ public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
entries.addAll(SqlBucketExtractors.getNamedWriteables());

// and custom types
entries.addAll(Literals.getNamedWriteables());
entries.addAll(SqlLiterals.getNamedWriteables());

return entries;
}
Expand Down

0 comments on commit e295763

Please sign in to comment.