trino icon indicating copy to clipboard operation
trino copied to clipboard

Set length of avro input file after memory input file is created

Open mwong77 opened this issue 1 year ago • 3 comments

Description

In AWS Athena, we currently support encrypting S3 objects using CSE-KMS. The size of these encrypted object will be greater than the size when unencrypted since padding will be added. The input.readAllBytes(); function strips the padding from an encrypted object so we have to update the length variable as well if we create a new in memory input file.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. ( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@nineinchnick @anusudarsan

mwong77 avatar Oct 03 '24 20:10 mwong77