mgaido91 commented on issue #23802: [SPARK-26893][SQL] Allow partition pruning with subquery filters on file source URL: https://github.com/apache/spark/pull/23802#issuecomment-465556392 > I might be wrong but `PruneFileSourcePartitions` already filters at the metastore side (and it can't use subquery filters there) so does it make sense to convert subquery filters to normal filters before calling `listFiles(partitionFilters, dataFilters)`? @peter-toth I think what @cloud-fan is suggesting is to replace the subquery with its literal value before listing the partitions from the Hive metastore (please see `HiveShim.listPartitionsByFilter`). But IIUC, this should be done in `HiveStrategies` and I'd propose to do this in another PR since I consider it a different/indipendent change from this one. What do you think guys?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
