Skip to content

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
@github-actions
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.


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

hey @nik9000 just checking if anything added in this PR represents a change in behavior for 9.1, which we should signal with the applies_to tags?

I have a PR where I'm collecting updates, so I'll make the change if we need it :)

@nik9000
Copy link
Member Author

nik9000 commented Jul 24, 2025

Counters should be fine in all versions.

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