Open seb2704 opened 1 year ago
The class that is generating this error is InMemoryKmsClient
which is located in pyarrow/tests/parquet/encryption.py
. How are you importing this in the first place? My guess is that this class is a test utility and not intended for production code.
Also, the docstring for this class is "This is a mock class implementation of KmsClient, built for testing only."
Describe the bug, including details regarding any error messages, version, and platform.
Hi I'm trying to encrypt and decrypt a pyarrow table with a inmemory kmsclient. Everything works fine, but when i use the wrong key to decrypt the data, i get a a error message that includes the original encryption key. Here is my Code example:
Error message:
ValueError: ('Incorrect master key used', b'0123456789112340', b'\xaf\xf7\x15\x073\xec/"Z\xe3 \x86H\xf6\x8cP')
I'm using windows 10, Python 3.9 and pyarrow=12.0.0.
Am I doing something wrong? Or is this a bug?
Component(s)
Parquet, Python