Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-20194

Support partition pruning for InMemoryCatalog

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Optimizer, SQL
    • None

    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.

      Attachments

        Activity

          People

            a.ionescu Adrian Ionescu
            a.ionescu Adrian Ionescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: