wchevreuil commented on PR #187:
URL: https://github.com/apache/hbase-connectors/pull/187#issuecomment-7408765734

   > mostly looking good, but I used claude and found below , can you see if 
that is out of scope of this PR?
   > 
   > 1. Top-level ["null", record] columns are still broken. This is the issue 
I raised against c41fc9f.
   > 
   > * serialize unwraps the union and writes the record without a union index.
   > * usesRawAvroEncoding returns false for it, so the reader runs 
deserialize(src, ), which expects the index byte.
   > * The existing test serialize nullable record union reads the bytes back 
with the record schema, so it doesn't catch this.
   > * I found no Spark read-back test for a nullable record column.
   > * It isn't in this commit's scope, but a one-line change on the reader 
side would close it: unwrap the single non-null branch before calling 
deserialize.
   > 
   > 2. The writer and reader disagree on unions.
   > 
   > * serialize unwraps a union with exactly one non-null branch, of any size.
   > * usesRawAvroEncoding requires exactly two branches with one null.
   > * A single-branch union such as ["int"] or [fixed] would be written raw 
but read through Avro decoding.
   > * This is rare. Making the reader use the same "one non-null branch" rule 
would remove the mismatch.
   
   Thanks. I think we can address it here. Had pushed a new commit addressing 
those.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to