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 2020/07/01 16:57:00 UTC

[jira] [Created] (ASTERIXDB-2754) LoadRecordFieldRule produces inconsistent query plan

Dmitry Lychagin created ASTERIXDB-2754:
------------------------------------------

             Summary: LoadRecordFieldRule produces inconsistent query plan
                 Key: ASTERIXDB-2754
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2754
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: COMP - Compiler
    Affects Versions: 0.9.4
            Reporter: Dmitry Lychagin
            Assignee: Dmitry Lychagin
             Fix For: 0.9.5


LoadRecordFieldsRule replaces a field access expression with an expression this field was assigned to by a record constructor. The problem is that it does not clone the replacement expression which makes the query plan inconsistent because  the same expression is now shared by two operators.

See

[https://github.com/apache/asterixdb/blob/release-0.9.4.1/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/LoadRecordFieldsRule.java#L295]

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)