Skip to content

Add ISNULL, ISNOTNULL Filter Expression #3706

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dev-jonghoonpark
Copy link
Contributor

@dev-jonghoonpark dev-jonghoonpark commented Jun 28, 2025

This resolves the issue identified in #3694.

The operations isNull and isNotNull have been added to support filtering when a column or field is null.

example code:

// with text filter expression
.filterExpression("year IS NULL")
.filterExpression("year IS NOT NULL")
// with filter expression builder
.filterExpression(new FilterExpressionBuilder().isNull("year").build())
.filterExpression(new FilterExpressionBuilder().isNotNull("year").build())

To validate the changes, searchWithIsNullFilter and searchWithIsNotNullFilter has been added to ElasticsearchVectorStoreIT.

Closes #3694.

@sunyuhan1998
Copy link
Contributor

I also previously submitted a PR about FilterExpressionTextParser, but for some reason it doesn't seem to be getting followed up on: #3516

@dev-jonghoonpark dev-jonghoonpark force-pushed the allow-null-in-text-filter-expression branch from 2d9bbb1 to 3ec6297 Compare June 30, 2025 09:06
@dev-jonghoonpark dev-jonghoonpark changed the title Update FilterExpressionTextParser to allow null value Add ISNULL, ISNOTNULL Filter Expression Jun 30, 2025
@dev-jonghoonpark dev-jonghoonpark force-pushed the allow-null-in-text-filter-expression branch from 3ec6297 to 926a6e6 Compare June 30, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FilterExpressionTextParser does not support 'null' values
3 participants