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

Make HazelcastJsonValue work with PagingPredicate #19880

Merged
merged 1 commit into from
Nov 12, 2021

Conversation

sancar
Copy link
Contributor

@sancar sancar commented Nov 1, 2021

HazelcastJsonValue is made Comparable to work with PagingPredicate

fixes #14888

@sancar sancar added Type: Defect Team: Client Team: Core Source: Internal PR or issue was opened by an employee labels Nov 1, 2021
@sancar sancar added this to the 5.1 milestone Nov 1, 2021
@sancar sancar self-assigned this Nov 1, 2021
Copy link
Member

@srknzl srknzl left a comment

Choose a reason for hiding this comment

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

I think it looks good.

I believe we should document the sorting behaviour in the API documentation and reference manual, possibly here in the reference manual.

@@ -35,7 +37,7 @@
* Ill-formatted JSON strings may cause false positive or false negative
* results in queries. {@code null} string is not allowed.
*/
public final class HazelcastJsonValue {
public final class HazelcastJsonValue implements Comparable<HazelcastJsonValue> {
Copy link
Member

Choose a reason for hiding this comment

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

With this change all languages that has HazelcastJsonValue will be able use PagingPredicate with HazelcastJsonValue, is it right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that is right.

@mdumandag
Copy link
Contributor

I think it might be good to have some ideas regarding this from the SQL team as well. @ivanthescientist can you comment on this?

@sancar sancar marked this pull request as ready for review November 1, 2021 09:53
@ivanthescientist
Copy link
Contributor

I don't think this will affect SQL in any way. Every operation related to JSON will extract String value first anyway.

HazelcastJsonValue is made Comparable to work with PagingPredicate

fixes hazelcast#14888
@sancar sancar merged commit 9efa467 into hazelcast:master Nov 12, 2021
@sancar sancar deleted the fix/pagingJson/master branch November 12, 2021 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HazelcastJsonValue is not Comparable
5 participants