[ 
https://issues.apache.org/jira/browse/PHOENIX-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maryann Xue updated PHOENIX-1851:
---------------------------------
    Description: 
The RelMetadataProvider is to provide information required for calculating cost 
for RelNode instances. It includes row count, selectivity, distinct row count, 
etc. Some of the information may be already available from existing Phoenix 
statistics, and we will have to enhance Phoenix statistics to implement the 
rest.

The metadata provider classes to implement include:
PhoenixRelMdCollation
PhoenixRelMdColumnOrigins
PhoenixRelMdColumnUniqueness
PhoenixRelMdDistinctRowCount
PhoenixRelMdDistribution
PhoenixRelMdExplainVisibility
PhoenixRelMdMemory
PhoenixRelMdParallelism
PhoenixRelMdPercentageOriginalRows
PhoenixRelMdPopulationSize
PhoenixRelMdPredicates
PhoenixRelMdRowCount
PhoenixRelMdSelectivity
PhoenixRelMdSize
PhoenixRelMdUniqueKeys

We have default implementations in DefaultRelMetadataProvider, so we only need 
to implement those Phoenix specific metadata methods in the above classes.


  was:The MetadataFactory is to provide information required for calculating 
cost for RelNode instances. It includes row count, selectivity, distinct row 
count, etc. Some of the information may be already available from existing 
Phoenix statistics, and we will have to enhance Phoenix statistics to implement 
the rest.


> Implement PhoenixRelMetadataProvider in Phoenix/Calcite Integration
> -------------------------------------------------------------------
>
>                 Key: PHOENIX-1851
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1851
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Maryann Xue
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> The RelMetadataProvider is to provide information required for calculating 
> cost for RelNode instances. It includes row count, selectivity, distinct row 
> count, etc. Some of the information may be already available from existing 
> Phoenix statistics, and we will have to enhance Phoenix statistics to 
> implement the rest.
> The metadata provider classes to implement include:
> PhoenixRelMdCollation
> PhoenixRelMdColumnOrigins
> PhoenixRelMdColumnUniqueness
> PhoenixRelMdDistinctRowCount
> PhoenixRelMdDistribution
> PhoenixRelMdExplainVisibility
> PhoenixRelMdMemory
> PhoenixRelMdParallelism
> PhoenixRelMdPercentageOriginalRows
> PhoenixRelMdPopulationSize
> PhoenixRelMdPredicates
> PhoenixRelMdRowCount
> PhoenixRelMdSelectivity
> PhoenixRelMdSize
> PhoenixRelMdUniqueKeys
> We have default implementations in DefaultRelMetadataProvider, so we only 
> need to implement those Phoenix specific metadata methods in the above 
> classes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to