-
Notifications
You must be signed in to change notification settings - Fork 198
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] Support update table's sort order #1245
Comments
hey @JasperHG90 We probably need something like UpdateSchema and UpdateSpec which is used to update schema and partition spec respectively. Such as adding |
Thanks @kevinjqliu. Is this part of your roadmap? If so, I'd like to take a crack at it. |
i didnt find any similar ticket. renamed and assigned to you. Cheers! Please LMK if you have any questions |
For inspiration we can look at the Java side, there is a method on the table called I would expect something like, similar to Java: with table.replace_sort_order() as update:
update.asc("id") # identity
update.desc("user-id", BucketTransform(16)) # Bucket transform Similar to the partition spec: https://py.iceberg.apache.org/api/#partition-evolution but a bit more straightforward, since in the Spec we update it, and with the sort-order we replace it :) Feel free to reach out if you run into anything! |
Question
I was playing around with the sort order option and I couldn't find a way to update the sort order of a table. Is this supported? The docs only show how to define a sort order when a table is being created.
Thanks in advance.
The text was updated successfully, but these errors were encountered: