Skip to content
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

Feat:externalize partition filter in ES query #963

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Conversation

mbarbet
Copy link
Contributor

@mbarbet mbarbet commented May 30, 2024

if (f.f != null && !f.f.isEmpty()) {
CollectionReference collectionReference = fluidSearch.getCollectionReference();
if (!filterFHasDateQuery(f, collectionReference) && !StringUtil.isNullOrEmpty(f.dateformat)) {
throw new BadRequestException("dateformat is specified but no date field is queried in f filter (gt, lt, gte, lte or range operations)");
Copy link
Member

Choose a reason for hiding this comment

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

I find it harsh to raise an exception because the date format is provided and no date is provided. I believe the request is still valid when you add additional unused information.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part of code already existed and some IT test specifcally this comportement. I agree to change it but not in this PR.

@sylvaingaudan sylvaingaudan self-requested a review June 3, 2024 06:54
@mbarbet mbarbet changed the title Feat:externalize partition filter in ES query WIP : Feat:externalize partition filter in ES query Jun 14, 2024
@MohamedHamouGisaia MohamedHamouGisaia changed the title WIP : Feat:externalize partition filter in ES query Feat:externalize partition filter in ES query Jul 2, 2024
@mbarbet mbarbet merged commit 149c7c0 into develop Jul 3, 2024
2 checks passed
@mbarbet mbarbet deleted the feat/partitionFilter branch August 21, 2024 13:49
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.

Update documentation of partition-filters Apply an OR operation between different Partition filters.
5 participants