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/02/20 17:35:00 UTC
[jira] [Comment Edited] (CALCITE-3805) Add a new method to control
the agg input prune with explicit flag
[ https://issues.apache.org/jira/browse/CALCITE-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041161#comment-17041161 ]
Julian Hyde edited comment on CALCITE-3805 at 2/20/20 5:34 PM:
---------------------------------------------------------------
And even if you did that you would lose the aliases stored in the frames. It's better to use {{transform}} just after you create the {{RelBuilder}}.
Better still, fix your {{AggCall}} objects so that they tell the whole story of what fields they are using.
was (Author: julianhyde):
And even if you did that you would lose the aliases stored in the frames. It's better to use {{transform}} just after you create the {{RelBuilder}}.
Better still, fix your {{AggCall}s so that they tell the whole story of what fields they are using.
> Add a new method to control the agg input prune with explicit flag
> ------------------------------------------------------------------
>
> Key: CALCITE-3805
> URL: https://issues.apache.org/jira/browse/CALCITE-3805
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.22.0
> Reporter: Danny Chen
> Assignee: Danny Chen
> Priority: Major
>
> This feature is introduced by CALCITE-3763, which is cool for normal group aggregations.
> But in Flink, we have window group aggregation, we invoke the normal aggregate first then construct our LogicalWindowAggregate, the window may have some attributes that reference the pruned columns.
> I though about how i can control the prune flexibility, but this behavior is configured by the whole RelBuilder.Config, what i what is only forbidden this behavior when i construct the window aggregate, i still want this feature for normal aggregations.
> So, i propose to add a new method:
> {code:java}
> RelBuilder aggregate(
> GroupKey groupKey,
> Iterable<AggCall> aggCalls,
> boolean pruneInputOfAggregate)
> {code}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)