andygrove commented on code in PR #2250:
URL: https://github.com/apache/datafusion-comet/pull/2250#discussion_r2307754474
##########
spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala:
##########
@@ -131,11 +131,19 @@ case class CometScanRule(session: SparkSession) extends
Rule[SparkPlan] with Com
return withInfos(scanExec, fallbackReasons.toSet)
}
+ val encryptionEnabled: Boolean =
+ conf.getConfString("parquet.crypto.factory.class", "").nonEmpty &&
+ conf.getConfString("parquet.encryption.kms.client.class",
"").nonEmpty
+
var scanImpl = COMET_NATIVE_SCAN_IMPL.get()
// if scan is auto then pick the best available scan
if (scanImpl == SCAN_AUTO) {
- scanImpl = selectScan(scanExec, r.partitionSchema)
+ if (encryptionEnabled) {
Review Comment:
yes, good point
--
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]