Description
listPartitionsByFilter() is not yet implemented for InMemoryCatalog:
// TODO: Provide an implementation
throw new UnsupportedOperationException(
"listPartitionsByFilter is not implemented for InMemoryCatalog")
Because of this, there is a hack in FindDataSourceTable that avoids passing along the CatalogTable to the DataSource it creates when the catalog implementation is not "hive", so that, when the latter is resolved, an InMemoryFileIndex is created instead of a CatalogFileIndex which the PruneFileSourcePartitions rule matches for.