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

Support partition pruning for InMemoryCatalog

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment