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

Implement queries on lists of primitives #7056

Merged
merged 3 commits into from
Feb 16, 2021
Merged

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jan 18, 2021

Also incidentally adds support for a few other things along the way. Binary columns used to not support a lot of queries which were supported on everything else, but they now do and removing the special cases made it a lot easier to support List<Data>.

Depends on some unreleased functionality in core master, so can't be merged until a release is made there and all non-spm tests will fail.

Fixes #5334.

@tgoyne tgoyne self-assigned this Jan 18, 2021
@tgoyne tgoyne requested a review from jsflax January 19, 2021 16:12
@tgoyne tgoyne force-pushed the tg/primitive-list-queries branch from 1b13246 to a7931c5 Compare January 21, 2021 22:10
Realm/RLMQueryUtil.mm Outdated Show resolved Hide resolved
NSComparisonPredicateOptions predicateOptions,
ColumnReference const& column, R const& rhs);
template <typename... T>
template <template<typename> typename W, typename T>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we give these template types better names? I can see how W is being used in the method body, but it seems like a fairly arbitrary designation that could use a bit more self documenting.

Copy link
Member Author

Choose a reason for hiding this comment

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

W was initially Wrapper but that name wasn't very accurate and I failed to come up with a good name for it.

Realm/RLMQueryUtil.mm Outdated Show resolved Hide resolved
Realm/RLMQueryUtil.mm Outdated Show resolved Hide resolved
@tgoyne tgoyne force-pushed the tg/primitive-list-queries branch from a7931c5 to 7c927e3 Compare February 10, 2021 00:30
@tgoyne
Copy link
Member Author

tgoyne commented Feb 11, 2021

Depends on realm/realm-core#4417.

@tgoyne tgoyne force-pushed the tg/primitive-list-queries branch from fef176d to 20fc3f0 Compare February 16, 2021 18:05
@tgoyne
Copy link
Member Author

tgoyne commented Feb 16, 2021

This hit a new assertion failure in one of the CI runs which realm/realm-core#4428 fixes. Since it's a core 10.5.0 bug and not something new in 10.5.1 it's not blocking this. The other CI failures are pre-existing issues and network failures.

@tgoyne tgoyne merged commit 8ea1009 into master Feb 16, 2021
@tgoyne tgoyne deleted the tg/primitive-list-queries branch February 16, 2021 22:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support queries involving arrays of primitives
2 participants