[ https://issues.apache.org/jira/browse/ASTERIXDB-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486031#comment-17486031 ]
ASF subversion and git services commented on ASTERIXDB-3007: ------------------------------------------------------------ Commit e8c2042d775666653f87229e952e3db4227678e0 in asterixdb's branch refs/heads/master from Dmitry Lychagin [ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=e8c2042 ] [ASTERIXDB-3007][TEST] Fix PlanVerifierTestBase - user model changes: no - storage format changes: no - interface changes: no Details: - Fix illegal query plan created by PlanVerifierTestBase Change-Id: Ib0ab584bd5ff71596d84f769aa8584e9223698ec Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/15125 Reviewed-by: Michael Blow <mb...@apache.org> Tested-by: Michael Blow <mb...@apache.org> > 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 > Priority: Major > 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)