Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21817

CBO: PartitionPruner cache-miss from Calcite planner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • CBO
    • None

    Description

      public static PrunedPartitionList prune(Table tab, ExprNodeDesc prunerExpr,
            HiveConf conf, String alias, Map<String, PrunedPartitionList> prunedPartitionsMap)
                throws SemanticException {
      
      vs
      
        public PrunedPartitionList getPrunedPartitions(String alias, TableScanOperator ts)
            throws SemanticException {
          PrunedPartitionList partsList = opToPartList.get(ts);
      

      Only the 2nd one hits the PPR cache.

      Attachments

        1. calcite-ppr.png
          126 kB
          Gopal Vijayaraghavan
        2. pcr-cache-miss.png
          242 kB
          Gopal Vijayaraghavan

        Activity

          People

            jcamacho Jesús Camacho Rodríguez
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: