Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5944

Add metadata for Sample

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.36.0
    • core

    Description

      For the sql

      select * from emp tablesample system(20) 

      `mq.getRowCount(rel)` is null, but we can return `inputRowCount * 0.2`.

       

      Some metadata need to be implemented.

      • RelMdAllPredicates
      • RelMdColumnOrigins
      • RelMdExpressionLineage
      • RelMdMaxRowCount
      • RelMdMinRowCount
      • RelMdPredicates
      • RelMdRowCount

      Some metadata have been implemented.

      • RelMdTableReferences
      • RelMdNodeTypes

      Some metadabata not need to be implemented.

      • RelMdColumnUniqueness (Handle SingleRel)
      • RelMdDistribution (Handle SingleRel)
      • RelMdDistinctRowCount(Handle RelNode)
      • RelMdExplainVisibility(Only TableScan)
      • RelMdLowerBoundCost(Handle RelNode)
      • RelMdMemory(Handle RelNode)
      • RelMdParallelism(Handle RelNode)
      • RelMdPercentageOriginalRows(Handle RelNode)
      • RelMdPopulationSize(Handle RelNode)
      • RelMdSelectivity(Must have predicate)
      • RelMdSize(Handle RelNode)
      • RelMdUniqueKeys(Handle SingleRel)

      Attachments

        Issue Links

          Activity

            People

              jiajunbernoulli Jiajun Xie
              jiajunbernoulli Jiajun Xie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: