Repository navigation
fix: table UUID partitions not working - #2916
Conversation
|
A few notes ... Avro has an The other thing I found is with the integration tests. I found when I had multiple tests in the same file it would fail with a Reqwest + Tokio error. I believe in As a workaround I put my second test into a second file. I'd be happy to try to solve this in a followup ticket if there is interest, and any other work to make test simpler. The solution is technically straight forward, but would be a chunk of code. We are talking a custom S3 storage layer, changing OpenDal core, or moving to use |
f92395e to
de83553
Compare
blackmwk
left a comment
There was a problem hiding this comment.
Thanks @JosephLenton for this fix!
5f0221f to
6ca9fa2
Compare
|
Hey @blackmwk those changes are done. Please take another look when you have time! Btw whilst working on this I found a few items which I suspect to be bugs. I can add them as tickets later when I have time:
|
mbutrovich
left a comment
There was a problem hiding this comment.
First pass, thanks for working on this @JosephLenton!
6ca9fa2 to
a9fbd60
Compare
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
|
Please keep this around for a little longer. It does not need a review. I plan to return to this PR this week, to try and get UUIDs working in partitions. |
|
Removed the |
a9fbd60 to
0aec00d
Compare
|
Hey @mbutrovich , I have updated this and it should now be ready for review! The main changes since it was first open:
I have tested these changes locally against DF integration tests, and a private Iceberg project, and on both UUID partitions are now working. |
mbutrovich
left a comment
There was a problem hiding this comment.
Thanks for coming back to this after the Avro 0.22 release, @JosephLenton! Writing the uuid as the spec's 16-byte fixed type is the right fix, and it keeps the manifest format the same as Java's.
|
Please also resovle conflicts |
c32a830 to
b6b77af
Compare
|
Hey @mbutrovich and @blackmwk . Thank you both for the reviews! I have rebased, removed the Cargo.lock update, addressed most of the points. I have pushed back on removing Please can you take a look when you both have time. Thank you again! |
095455c to
3b66443
Compare
|
No worries. @blackmwk I've just pushed up a rebase just now. |
|
I can see there are some issues with the rebase. I will get this resolved over the next few hours. |
|
@blackmwk that is now resolved. The CI is now green. |
Which issue does this PR close?
Table Partitions work on writing with UUID values.
What changes are included in this PR?
uuidnow matches the spec'sfixed[16] + logicalType: uuidnameduuid_fixed, instead of astring.PrimitiveLiteral::UInt128will now convert to a newRawLiteralEnum::Fixed, when the type is UUID. This writes an AvroValue::Fixed, which apache-avro requires for a fixed uuid schema.PrimitiveLiteral::Binaryalso converts toRawLiteralEnum::Fixed, when the type isfixed[N].RawLiteralEnum::Stringcan now be read back as a UUID. Only hyphenated UUIDs are accepted, to match the Java implementation.Are these changes tested?
I added:
uuidfield.fixed[16]and 16 byte binary values to and from Avro and JSON.fixed[16]partitions, for v1, v2 and v3.uuid_fixedschema name does not error.nulldoes not error.AI Disclosure
I have used Claude code substantially during this to: