-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
3f168af
to
ad6ef6d
Compare
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)"); |
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.
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.
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.
This part of code already existed and some IT test specifcally this comportement. I agree to change it but not in this PR.
arlas-core/src/main/java/io/arlas/server/core/services/ExploreService.java
Show resolved
Hide resolved
arlas-core/src/main/java/io/arlas/server/core/impl/elastic/services/ElasticFluidSearch.java
Outdated
Show resolved
Hide resolved
arlas-core/src/main/java/io/arlas/server/core/impl/elastic/services/ElasticFluidSearch.java
Outdated
Show resolved
Hide resolved
ogc-wfs/src/main/java/io/arlas/server/ogc/wfs/services/ElasticWFSToolService.java
Outdated
Show resolved
Hide resolved
ad6ef6d
to
65abba7
Compare
a019794
to
cb18e89
Compare
We remove the partition-filter header in case it's been set manually