Skip to content

Commit da3f737

Browse files
Fix
1 parent 87796c4 commit da3f737

File tree

1 file changed

+3
-0
lines changed
  • x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression

1 file changed

+3
-0
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression/Literal.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public Literal(Source source, Object value, DataType dataType) {
5858

5959
private boolean noPlainStrings(Object value, DataType dataType) {
6060
if (dataType == KEYWORD || dataType == TEXT || dataType == VERSION) {
61+
if (value == null) {
62+
return true;
63+
}
6164
return switch (value) {
6265
case String s -> false;
6366
case Collection<?> c -> c.stream().allMatch(x -> noPlainStrings(x, dataType));

0 commit comments

Comments
 (0)