sunchao commented on code in PR #7720:
URL: https://github.com/apache/datafusion-comet/pull/7720#discussion_r4793787493
##########
spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala:
##########
@@ -275,18 +276,28 @@ case class CometScanRule(session: SparkSession)
if (!CometNativeScan.isSupported(scanExec)) {
return None
}
- if (encryptionEnabled(hadoopConf) &&
!isEncryptionConfigSupported(hadoopConf)) {
+ val encryptionConfigured = encryptionEnabled(hadoopConf)
+ if (encryptionConfigured && !isEncryptionConfigSupported(hadoopConf)) {
withFallbackReason(scanExec, "Native Parquet scan does not support
encryption")
return None
}
// TODO: Remove this fallback once DataFusion can ignore embedded Arrow
schema hints and
// preserve Spark's ENUM inference without losing Parquet decryption state.
// https://github.com/apache/datafusion-comet/issues/5477
- if (encryptionEnabled(hadoopConf) &&
+ if (encryptionConfigured &&
scanExec.requiredSchema.exists(field => isVariantType(field.dataType))) {
withFallbackReason(scanExec, "Native Parquet Variant scans do not
support encryption")
return None
}
+ // Legacy lists can hide INT96 leaves from DataFusion's microsecond
coercion. Rebuilding
+ // the footer with a schema hint would lose the decryptor. Remove after
adopting
+ // https://github.com/apache/datafusion/pull/26464.
Review Comment:
Updated in 9132bc247a33. The TODO links #7029 and says to remove the guard
once Comet pins a release containing apache/datafusion#26464. DataFusion 56.0.0
still misses `at.bag.array` because it looks for `at.list.array`. I couldn't
find a public 56.x backport request.
@andygrove I also replaced the footer rewrite explanation with that path
mismatch, as you suggested.
##########
docs/source/user-guide/latest/parquet.md:
##########
@@ -38,6 +38,11 @@ described in [Supported Data
Sources](datasources.md#supported-storages).
The following features are not supported and cause Comet to fall back to Spark:
- Decimals encoded in binary format.
+- Scans configured for Parquet modular encryption that read a timestamp inside
an array, including
Review Comment:
Updated in 9132bc247a33. The fallback bullet now links to the #7029 entry,
which limits the wrong-result warning to scans without modular encryption
configured. I suggested landing #7148 first in the PR description. When
rebasing this PR after #7148, we can drop the warning for those layouts and
link the fallback bullet directly to #7029.
--
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]