[ 
https://issues.apache.org/jira/browse/CALCITE-5944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17756710#comment-17756710
 ] 

Julian Hyde commented on CALCITE-5944:
--------------------------------------

I agree with [~libenchao]. The summary of this case should be 'Add metadata for 
Sample', and you should consider all kinds of metadata. For example, predicates 
propagate through Sample unchanged.

> RelMdRowCount can return more accurate rowCount for Sample
> ----------------------------------------------------------
>
>                 Key: CALCITE-5944
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5944
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jiajun Xie
>            Assignee: Jiajun Xie
>            Priority: Minor
>              Labels: pull-request-available
>
> For the sql
> {code:java}
> select * from emp tablesample system(20) {code}
> `mq.getRowCount(rel)` is null, but we can return `inputRowCount * 0.2`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to