You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2020/09/12 20:45:00 UTC

[jira] [Commented] (CALCITE-4251) Overload RelMetadataQuery#getColumnOrigin method

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

Julian Hyde commented on CALCITE-4251:
--------------------------------------

By 'overload', you mean add more parameters? If so, what parameters?

> Overload RelMetadataQuery#getColumnOrigin method
> ------------------------------------------------
>
>                 Key: CALCITE-4251
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4251
>             Project: Calcite
>          Issue Type: Wish
>            Reporter: xzh_dz
>            Priority: Major
>
> A case:
>  
> {code:java}
> // 
> select col1, col2 , sum(count_col4) as sum_col4 
> from (
>   select col1, col2, col3, count(col4) as count_col4   
>   from tbl   
>   group by col1, col2, col3
> )
> group by col1, col2
> {code}
> When i try to get the `sum_col4` origin column field,it will return null and it is derived. we always get the origin column although it is derived. We should overload this method.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)