hazelcast / hazelcast/hz-docs

Comparing two fields is not supported with Predicates.

Open
#732 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
11
Forks
112
Avg merge
20h 29m
Merged PRs (30d)
19

Description

Comparing two fields is not supported with Predicates.
for example, we have 2 fields(POJO class properties) called linkedFundId and fundId and if we want to compare these 2 fields using Predicate API,
Predicates.not(Predicates.equal("linkedFundId", "fundId")) or Predicates.sql(linkedFundId!=fundId) do not give the correct result.
It considers the right side of the field as Value. But the API should compare 2 fields and it should be documented that Predicate API doesn't allow to compare 2 fields.

Please refer to this channel for more information.
https://hazelcast.slack.com/archives/C034YQBTG/p1684253259421529

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.