sergehuber commented on code in PR #715:
URL: https://github.com/apache/unomi/pull/715#discussion_r2428598159
##########
itests/src/test/java/org/apache/unomi/itests/JSONSchemaIT.java:
##########
@@ -340,7 +339,14 @@ public void testFlattenedProperties() throws Exception {
condition.setParameter("propertyName",
"flattenedProperties.interests.cars");
condition.setParameter("comparisonOperator", "greaterThan");
condition.setParameter("propertyValueInteger", 2);
- assertNull(persistenceService.query(condition, null, Event.class, 0,
-1));
+ // OpenSearch handles flattened fields differently than Elasticsearch
+ if ("opensearch".equals(searchEngine)) {
+ assertNotNull("OpenSearch should return results for flattened
properties",
+ persistenceService.query(condition, null, Event.class, 0, -1));
+ } else {
+ assertNull("Elasticsearch should return null for flattened
properties",
+ persistenceService.query(condition, null, Event.class, 0, -1));
+ }
Review Comment:
It's just that one returns null and the other empty results. Shouldn't be a
big problem.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]