parthchandra commented on code in PR #674:
URL: https://github.com/apache/datafusion-comet/pull/674#discussion_r1680059722
##########
spark/src/main/spark-3.5/org/apache/spark/sql/comet/shims/ShimCometScanExec.scala:
##########
@@ -49,16 +48,14 @@ trait ShimCometScanExec {
filePartitions,
readSchema,
fileConstantMetadataColumns,
- Map.empty,
+ fsRelation.fileFormat.fileConstantMetadataExtractors,
options)
protected def invalidBucketFile(path: String, sparkVersion: String):
Throwable =
- new SparkException("INVALID_BUCKET_FILE", Map("path" -> path), null)
+ QueryExecutionErrors.invalidBucketFile(path)
- protected def isNeededForSchema(sparkSchema: StructType): Boolean = {
- // TODO: remove after PARQUET-2161 becomes available in Parquet (tracked
in SPARK-39634)
- ShimFileFormat.findRowIndexColumnIndexInSchema(sparkSchema) >= 0
- }
+ // see SPARK-39634
+ protected def isNeededForSchema(sparkSchema: StructType): Boolean = false
Review Comment:
We still have this in the 4.0 shim. Is this not needed any more?
--
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]