-
Notifications
You must be signed in to change notification settings - Fork 135
IGNITE-18479: ports #1629
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
IGNITE-18479: ports #1629
Conversation
…ith-limit physical relational operator
…ation of complex expressions in index conditions
1309ddb to
bc58827
Compare
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/rel/IgniteSort.java
Outdated
Show resolved
Hide resolved
...s/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/rule/SortConverterRule.java
Outdated
Show resolved
Hide resolved
b10ff68 to
d7157e1
Compare
…r port IGNITE-16013
d7157e1 to
b569fbb
Compare
...s/runner/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItDataTypesTest.java
Show resolved
Hide resolved
| /** Reverse-ordered rows in case of limited sort. */ | ||
| private List<RowT> reversed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** Reverse-ordered rows in case of limited sort. */ | |
| private List<RowT> reversed; | |
| /** Reverse-ordered rows in case of limited sort. */ | |
| private List<RowT> stack; |
Also, I'd use fastutil Stack interface here, or even add Stack backed by ArrayList to core module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think we can reuse the same array for both structures: PriorityQueue and Stack.
E.g. using ObjectHeapPriorityQueue and write trivial Stack implementation.
Actually, PriorityQueue stores data in heap structure that is partially sorted.
It looks easy to implement heap-sort algorithm to get the array sorted instantly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think most optimizations and refactoring should be done separately. Here just port from AI2 with fixes real bugs
…r port IGNITE-16013
c29b50b to
6684da0
Compare
# Conflicts: # modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/exp/agg/Accumulators.java
ee7d4a5 to
7c0b152
Compare
No description provided.