-
Notifications
You must be signed in to change notification settings - Fork 25.3k
ESQL: Add counters to signature for IS NULL
#129670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESQL: Add counters to signature for IS NULL
#129670
Conversation
This adds `counter_long` and `counter_double` to the signatures of supported fields for `IS NULL` and `IS NOT NULL`. We hadn't been generating those signatures since the docs v3 migration, so this had to plug those in. In addition, it changes the wording on a few things and adds a note that if a field is only in some documents then the ones missing the field will have `NULL` - which is important information for `IS NULL` and `IS NOT NULL`.
🔍 Preview links for changed docs:
🔔 The preview site may take up to 3 minutes to finish building. These links will become live once it completes. |
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to clarify/verbify the descriptions— not married to the specific words but should be verb phrase :)
...in/esql/src/main/java/org/elasticsearch/xpack/esql/expression/predicate/nulls/IsNotNull.java
Outdated
Show resolved
Hide resolved
...lugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/predicate/nulls/IsNull.java
Outdated
Show resolved
Hide resolved
@leemthompo - pushed a different description. |
@@ -37,7 +39,42 @@ public class IsNotNull extends UnaryScalarFunction implements EvaluatorMapper, N | |||
IsNotNull::new | |||
); | |||
|
|||
public IsNotNull(Source source, Expression field) { | |||
@FunctionInfo( | |||
description = "Checks if a value *not* is `NULL`.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "Checks if a value *not* is `NULL`.", | |
description = "Checks if a value is *not* `NULL`.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blep. Fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a remaining nit, thanks for thinking thru the wording changes :)
This adds `counter_long` and `counter_double` to the signatures of supported fields for `IS NULL` and `IS NOT NULL`. We hadn't been generating those signatures since the docs v3 migration, so this had to plug those in. In addition, it changes the wording on a few things and adds a note that if a field is only in some documents then the ones missing the field will have `NULL` - which is important information for `IS NULL` and `IS NOT NULL`.
This adds
counter_long
andcounter_double
to the signatures of supported fields forIS NULL
andIS NOT NULL
. We hadn't been generating those signatures since the docs v3 migration, so this had to plug those in. In addition, it changes the wording on a few things and adds a note that if a field is only in some documents then the ones missing the field will haveNULL
- which is important information forIS NULL
andIS NOT NULL
.