[
https://issues.apache.org/jira/browse/KYLIN-5355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17647069#comment-17647069
]
pengfei.zhan edited comment on KYLIN-5355 at 12/14/22 1:34 PM:
---------------------------------------------------------------
After matching models, test `context.realization == null &&
context.isConstantQueryWithAggregations()', if true, consider this statement as
a constant query.
was (Author: JIRAUSER294653):
What happened? Because the method `RuleBasedIndex#calculateCurrentSortedList`
uses `HashSet` rather than `LinkedHashSet`.
> Support constant aggregate on a table
> -------------------------------------
>
> Key: KYLIN-5355
> URL: https://issues.apache.org/jira/browse/KYLIN-5355
> Project: Kylin
> Issue Type: Improvement
> Components: Query Engine
> Affects Versions: 5.0-alpha
> Reporter: pengfei.zhan
> Assignee: pengfei.zhan
> Priority: Major
> Fix For: 5.0-alpha
>
>
> At present, KYLIN supports some constant aggregate as below.
> {code:sql}
> select sum(1), min(1), max(1);
> {code}
> However, this kind of constant aggregate as below doesn't support query by
> model.
> {code:sql}
> select sum(1), min(1), max(1) from table;
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)