andygrove commented on code in PR #2250: URL: https://github.com/apache/datafusion-comet/pull/2250#discussion_r2307885326
########## 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: updated -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org