MCPcopy Create free account
hub / github.com/apache/arrow / write_encrypted_parquet

Function write_encrypted_parquet

python/pyarrow/tests/parquet/test_encryption.py:184–196  ·  view source on GitHub ↗
(path, table, encryption_config,
                            kms_connection_config, crypto_factory)

Source from the content-addressed store, hash-verified

182
183
184def write_encrypted_parquet(path, table, encryption_config,
185 kms_connection_config, crypto_factory):
186 if encryption_config.internal_key_material:
187 file_encryption_properties = crypto_factory.file_encryption_properties(
188 kms_connection_config, encryption_config)
189 else:
190 file_encryption_properties = crypto_factory.file_encryption_properties(
191 kms_connection_config, encryption_config, path)
192 assert file_encryption_properties is not None
193 with pq.ParquetWriter(
194 path, table.schema,
195 encryption_properties=file_encryption_properties) as writer:
196 writer.write_table(table)
197
198
199def read_encrypted_parquet(path, decryption_config,

Calls 1

write_tableMethod · 0.45

Tested by

no test coverage detected