Skip to content

Commit 35e9811

Browse files
committed
Improve categorize javadocs
1 parent e6ac068 commit 35e9811

File tree

1 file changed

+2
-1
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping

1 file changed

+2
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public boolean foldable() {
9595

9696
@Override
9797
public Nullability nullable() {
98-
// Both nulls and empty strings result in null values
98+
// Null strings and strings that don't produce tokens after analysis lead to null values.
99+
// This includes empty strings, only whitespace, (hexa)decimal numbers and stopwords.
99100
return Nullability.TRUE;
100101
}
101102

0 commit comments

Comments
 (0)