You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "ren shangtao (Jira)" <ji...@apache.org> on 2022/08/18 11:31:00 UTC

[jira] [Created] (PARQUET-2174) Encrypting the entire table is impossible

ren shangtao created PARQUET-2174:
-------------------------------------

             Summary:  Encrypting the entire table is impossible
                 Key: PARQUET-2174
                 URL: https://issues.apache.org/jira/browse/PARQUET-2174
             Project: Parquet
          Issue Type: Bug
          Components: parquet-mr
    Affects Versions: 1.12.2
         Environment: Linux
            Reporter: ren shangtao


 

```java

public InternalColumnEncryptionSetup getColumnSetup(ColumnPath columnPath,
boolean createIfNull, int ordinal) {
InternalColumnEncryptionSetup internalColumnProperties = columnMap.get(columnPath);

if (null != internalColumnProperties) {
if (ordinal != internalColumnProperties.getOrdinal()) {
throw new ParquetCryptoRuntimeException("Column ordinal doesnt match " + columnPath +
": " + ordinal + ", "+internalColumnProperties.getOrdinal());
}
return internalColumnProperties;
}

{color:#FF0000}------ here is always true, then throw Exception{color}
if (!createIfNull) {
throw new ParquetCryptoRuntimeException("No encryption setup found for column " + columnPath);
}
if (fileCryptoMetaDataCreated) {
throw new ParquetCryptoRuntimeException("Re-use: No encryption setup for column " + columnPath);
}

```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)