Skip to content

Change to operators that will hit GIN index on Naksha feature tags#577

Merged
gunplar merged 3 commits intov3from
v3-CASL-1799-TagOr-WHERE-query
May 6, 2026
Merged

Change to operators that will hit GIN index on Naksha feature tags#577
gunplar merged 3 commits intov3from
v3-CASL-1799-TagOr-WHERE-query

Conversation

@gunplar
Copy link
Copy Markdown
Collaborator

@gunplar gunplar commented May 6, 2026

No description provided.

gunplar added 3 commits May 6, 2026 15:18
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Code Coverage

Overall Project 62.94% 🍏
Files changed 100% 🍏

File Coverage
NakshaVersion.kt 84.98% 🍏
PgQueryWhereBuilder.kt 76.18% 🍏

Copy link
Copy Markdown
Member

@xeus2001 xeus2001 left a comment

Choose a reason for hiding this comment

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

Okay with merging, just wonder about the need for the NULL handling.


private fun containsOnlyTagExists(container: ListProxy<ITagQuery>): Boolean =
container.all { it is TagExists }
container.all { it == null || it is TagExists }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this change needed? The name of the function let me assume, that null should not be a valid TagExists

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I initially assumed so as well, but apparently ListProxy<E : Any> : MutableList<E?>, the underlying E? means it can actually store null underneath.

@gunplar gunplar merged commit 7d70865 into v3 May 6, 2026
3 checks passed
@gunplar gunplar deleted the v3-CASL-1799-TagOr-WHERE-query branch May 6, 2026 14:58
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.

2 participants