You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Dmitry Lychagin (Jira)" <ji...@apache.org> on 2022/01/31 20:12:00 UTC

[jira] [Created] (ASTERIXDB-3007) Internal compiler error in ConsolidateWindowOperatorsRule

Dmitry Lychagin created ASTERIXDB-3007:
------------------------------------------

             Summary: Internal compiler error in ConsolidateWindowOperatorsRule
                 Key: ASTERIXDB-3007
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3007
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: COMP - Compiler
    Affects Versions: 0.9.7
            Reporter: Dmitry Lychagin
            Assignee: Dmitry Lychagin
             Fix For: 0.9.8


The following query fails optimizer sanity check at compile time
{noformat}
SELECT x, t, lag(dx/dt) over (order by t)
FROM ds1
LET dx = x - lag(x) over (order by t),
    dt = t - lag(t) over (order by t)
{noformat}
Error:
{noformat}
java.lang.Exception: HYR0126: Illegal state. Fired rule org.apache.asterix.optimizer.rules.AsterixConsolidateWindowOperatorsRule produced illegal undefined used variables [$$119, $$120] in aggregate [$$121, $$120, $$119] <- [agg-first-element(numeric-divide(numeric-subtract($$117, $$119), numeric-subtract($$ds1.t, $$120))), agg-first-element($$ds1.t), agg-first-element($$117)] -- |UNPARTITIONED|
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)