mbutrovich commented on code in PR #2447: URL: https://github.com/apache/datafusion-comet/pull/2447#discussion_r2391204172
########## native/core/src/parquet/encryption_support.rs: ########## @@ -0,0 +1,151 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +use crate::execution::operators::ExecutionError; +use crate::jvm_bridge::JVMClasses; +use arrow::datatypes::SchemaRef; +use async_trait::async_trait; +use datafusion::common::extensions_options; +use datafusion::config::EncryptionFactoryOptions; +use datafusion::error::DataFusionError; +use datafusion::execution::parquet_encryption::EncryptionFactory; +use jni::objects::{GlobalRef, JMethodID}; +use object_store::path::Path; +use parquet::encryption::decrypt::{FileDecryptionProperties, KeyRetriever}; +use parquet::encryption::encrypt::FileEncryptionProperties; +use std::sync::Arc; + +pub const ENCRYPTION_FACTORY_ID: &str = "comet.jni_kms_encryption"; + +// Options used to configure our example encryption factory +extensions_options! { + pub struct CometEncryptionConfig { + pub url_base: String, default = "file:///".into() Review Comment: This will only work for local files, not HDFS or S3. I'll need to sort that out today. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
