You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@parquet.apache.org by "gszadovszky (via GitHub)" <gi...@apache.org> on 2025/09/18 05:54:21 UTC

[I] Variant binary read does not take length into account [parquet-java]

gszadovszky opened a new issue, #3315:
URL: https://github.com/apache/parquet-java/issues/3315

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   Reading binary values out of variant returns a `ByteBuffer` instance sliced from the original input `ByteBuffer`. The problem is that the length of the binary value is not taken into account during the slicing, so the entire remaining buffer (slice) is returned.
   See at [VariantUtil.getBinary](https://github.com/apache/parquet-java/blob/apache-parquet-1.16.0/parquet-variant/src/main/java/org/apache/parquet/variant/VariantUtil.java#L615)
   
   ### Component(s)
   
   _No response_


-- 
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: issues-unsubscribe@parquet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org


Re: [I] Variant binary read does not take length into account [parquet-java]

Posted by "gszadovszky (via GitHub)" <gi...@apache.org>.
gszadovszky commented on issue #3315:
URL: https://github.com/apache/parquet-java/issues/3315#issuecomment-3305531981

   @gene-db, could you take a look?


-- 
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: issues-unsubscribe@parquet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org


Re: [I] Variant binary read does not take length into account [parquet-java]

Posted by "gszadovszky (via GitHub)" <gi...@apache.org>.
gszadovszky closed issue #3315: Variant binary read does not take length into account
URL: https://github.com/apache/parquet-java/issues/3315


-- 
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: issues-unsubscribe@parquet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org