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

Extend parse_query_condition to use new 'IN' and 'NOT_IN' queries #598

Merged
merged 5 commits into from
Sep 29, 2023

Conversation

eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Sep 29, 2023

This PR extend #597 but adding support for the new (faster) vector set comparisons to parse_query_conditions.

As parse_query_conditions starts of with a syntactially valid R expression, we cannot use IN and NOT_IN which are not known operators. So we reuse the existing %in% and, as commonly done, locally define

 `%nin%` <- Negate(`%in%`)

A few new tests will be have been added too but and it (of course) passes all existing tests in test_querycondion.R.

Context: single-cell-data/TileDB-SOMA#1742

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #34849: Extend parse_query_condition to support IN and NOT_IN.

@eddelbuettel eddelbuettel merged commit 0145503 into master Sep 29, 2023
8 checks passed
@eddelbuettel eddelbuettel deleted the de/sc-34849/extend_parse_query_condition branch September 29, 2023 22:09
@eddelbuettel eddelbuettel mentioned this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants