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 2017/01/06 20:55:58 UTC

[jira] [Resolved] (CALCITE-1543) Correlated scalar sub-query with multiple aggregates gives AssertionError

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

Julian Hyde resolved CALCITE-1543.
----------------------------------
    Resolution: Fixed

Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/408285f0. Thanks for the PR, [~ykt836]!

> Correlated scalar sub-query with multiple aggregates gives AssertionError
> -------------------------------------------------------------------------
>
>                 Key: CALCITE-1543
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1543
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Kurt Young
>            Assignee: Julian Hyde
>             Fix For: 1.12.0
>
>
> Caused by: java.lang.AssertionError at org.apache.calcite.sql2rel.RelDecorrelator.decorrelateRel(RelDecorrelator.java:456)
> The code is:
> {code}
>     final Frame frame = getInvoke(oldInput, rel);
>     if (frame == null) {
>       // If input has not been rewritten, do not rewrite this rel.
>       return null;
>     }
>     assert !frame.corVarOutputPos.isEmpty();
> {code}
> Seems like it's no need to assert the corVarOutputPos because in some cases, the correlate has been fully rewritten. 



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