Skip to content

[core] Fix default NOT IN composition in file index reader - #9612

Open
lilei1128 wants to merge 1 commit into
apache:masterfrom
lilei1128:fix-file-index
Open

[core] Fix default NOT IN composition in file index reader#9612
lilei1128 wants to merge 1 commit into
apache:masterfrom
lilei1128:fix-file-index

Conversation

@lilei1128

Copy link
Copy Markdown
Contributor

Purpose

The default FileIndexReader implementation incorrectly combines
multiple NOT EQUAL results with OR when evaluating NOT IN.

Use AND to match SQL semantics:
a NOT IN (1, 2) = a != 1 AND a != 2

Tests

FileIndexReaderTest#testNotInCombinesNotEqualResultsWithAnd

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.

1 participant