wangyum commented on pull request #31993: URL: https://github.com/apache/spark/pull/31993#issuecomment-810724594
Can we disable column pruning when it is Hive ORC table? https://github.com/apache/spark/blob/25e7d1ceee8c9f4ecb4ab796f51e9bcbc0500fae/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/SchemaPruning.scala#L98-L100 Update `canPruneRelation` to: ```scala private def canPruneRelation(fsRelation: HadoopFsRelation) = { fsRelation.fileFormat match { case _: ParquetFileFormat => true case _: OrcFileFormat => fsRelation.location match { case c: CatalogFileIndex => !c.table.provider.contains(DDLUtils.HIVE_PROVIDER) case _ => true } } } ``` -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
