Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3892

Metadata cache not being leveraged when partition pruning is taking place

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • Metadata
    • None

    Description

      git.commit.id.abbrev=92638dc

      As we can see from the below plan, metadata cache is not being leveraged even when the cache file is being present

      0: jdbc:drill:zk=10.10.100.190:5181> refresh table metadata dfs.`/drill/testdata/metadata_caching/lineitem_deletecache`;
      +-------+-------------------------------------------------------------------------------------------------+
      |  ok   |                                             summary                                             |
      +-------+-------------------------------------------------------------------------------------------------+
      | true  | Successfully updated metadata for table /drill/testdata/metadata_caching/lineitem_deletecache.  |
      +-------+-------------------------------------------------------------------------------------------------+
      1 row selected (0.402 seconds)
      0: jdbc:drill:zk=10.10.100.190:5181> explain plan for select count(*) from dfs.`/drill/testdata/metadata_caching/lineitem_deletecache` where dir0=2006 group by l_linestatus;
      +------+------+
      | text | json |
      +------+------+
      | 00-00    Screen
      00-01      Project(EXPR$0=[$1])
      00-02        HashAgg(group=[{0}], EXPR$0=[COUNT()])
      00-03          Project(l_linestatus=[$0])
      00-04            Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath [path=maprfs:/drill/testdata/metadata_caching/lineitem_deletecache/2006/1/lineitem_999.parquet]], selectionRoot=maprfs:/drill/testdata/metadata_caching/lineitem_deletecache, numFiles=1, usedMetadataFile=false, columns=[`l_linestatus`, `dir0`]]])
      

      I attached the data set used. Let me know if you need anything more

      Attachments

        1. 0001-DRILL-3892-Once-usedMetadataFile-is-set-to-true-don-.patch
          3 kB
          Aman Sinha
        2. lineitem_deletecache.tgz
          2.38 MB
          Rahul Kumar Challapalli

        Activity

          People

            amansinha100 Aman Sinha
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: