Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Feat: replace sort order #1500
base: main
Are you sure you want to change the base?
Feat: replace sort order #1500
Changes from 30 commits
ccfcbcd
95da8f3
253967d
7b5a98e
304a806
48ac5c0
a47067c
c1ab2ec
8f27d14
d8720f2
90db60a
1cd2729
0a1e781
a550ccb
8b09255
67b9e52
dcaa63f
ced6a4b
43e09a3
b460c34
190071f
e9475de
eafafaf
ec5f711
d69a071
b5a5bd8
8080fa5
e77a2c1
fc32b28
fa1aa50
1aa6270
2e9cd3f
137dbd9
d8b9001
58d302d
0b543b8
fd0e287
5e57697
5131903
cc1ae1c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
this is not used
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.
this implementation defers from the java one. heres the code path for the java implementation 1, 2
In particular, the java implementation tries to retry sort order whenever possible.
i dont think
self._last_sort_order_id: int = transaction.table_metadata.default_sort_order_id
and then usingorder_id=self._last_sort_order_id + 1
is correct sincedefault_sort_order_id
might be always be the highest sort order._last_sort_order_id
should default to null and only changed when a new sort order is added.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.
can you add a test for modifying sort order of a table with existing sort order?
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.
With modifying do you mean updating it so that there's a new sort order or do you mean to modify an existing one without creating a new sort order. I've added a test doing the former.
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.
modify an existing one. but i see you added both. thanks!