Skip to content

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

Merged
merged 7 commits into from
Jun 24, 2025

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 18, 2025

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` 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`.
@nik9000 nik9000 requested a review from drewdaemon June 18, 2025 20:59
@nik9000 nik9000 added >docs General docs changes :Analytics/ES|QL AKA ESQL v9.1.0 labels Jun 18, 2025
Copy link
Contributor

github-actions bot commented Jun 18, 2025

🔍 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.

@elasticsearchmachine elasticsearchmachine added Team:Docs Meta label for docs team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Jun 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@nik9000 nik9000 requested a review from stratoula June 18, 2025 21:00
Copy link
Contributor

@leemthompo leemthompo left a 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 :)

@nik9000 nik9000 requested a review from leemthompo June 20, 2025 11:09
@nik9000
Copy link
Member Author

nik9000 commented Jun 20, 2025

@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`.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "Checks if a value *not* is `NULL`.",
description = "Checks if a value is *not* `NULL`.",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blep. Fixing.

Copy link
Contributor

@leemthompo leemthompo left a 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 :)

@nik9000 nik9000 enabled auto-merge (squash) June 23, 2025 18:18
@nik9000 nik9000 merged commit 59a10bd into elastic:main Jun 24, 2025
32 checks passed
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >docs General docs changes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Docs Meta label for docs team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants