Skip to content

Conversation

@katzyn
Copy link
Contributor

@katzyn katzyn commented Oct 27, 2024

Closes #4144.

Index-sorted optimization for queries with IN predicate was disabled in older versions of H2 because correct order of rows wasn't ensured, but in recent versions of H2 it was unintentionally enabled in some really unusual cases.

With these changes index conditions for the IN predicate sort values in expected order and this optimization is enabled back.

OPTIMIZE_IN_LIST=FALSE can still disable all these optimizations.

@katzyn katzyn merged commit 71840d3 into h2database:master Oct 28, 2024
2 checks passed
@katzyn katzyn deleted the in branch October 28, 2024 11:25
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.3.232] Regression in ORDER BY ... DESC with WHERE ... IN and OR clauses

1 participant