rok commented on issue #47254:
URL: https://github.com/apache/arrow/issues/47254#issuecomment-3149948518
Looking at your code example - it seems to build `WriterProperties` twice if
`isEncrypted == true``.
```cpp
parquet::WriterProperties::Builder builder;
// Set compression
builder.compression(parquet::Compression::UNCOMPRESSED);
if (isEncrypted)
{
parquet::FileEncryptionProperties::Builder
file_encryption_builder(KEY_VALUE);
builder.encryption(
file_encryption_builder.footer_key_id(KEY_LABEL)
->algorithm(parquet::ParquetCipher::AES_GCM_V1)
->build());
}
return builder.build();
```
Does the issue persist if you remove `->build()` from the `if (isEncrypted)`
path?
--
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]