Clone
Dmitry Lychagin <dmitry.lychagin@couchbase.com>
committed
on 11 Apr
[ASTERIXDB-2539][COMP] Exclude LET variables from "Single Variable Resolution" rule
- user model changes: yes
- storage format changes: no
-… Show more
[ASTERIXDB-2539][COMP] Exclude LET variables from "Single Variable Resolution" rule

- user model changes: yes

- storage format changes: no

- interface changes: no

Details:

- Variables introduced by LET clauses should not be

 considered by "Single Variable Resolution" rule

- In INSERT/UPSERT statements with RETURNING expression

 the automatically introduced variable should be named

 as the target dataset

- Refactor VariableCheckAndRewriteVisitor and

 other code related to name resolution

- Added testcases and updated documentation

Change-Id: I9b9f70a1671378f5216ec4e30416d4d67c3df089

Reviewed-on: https://asterix-gerrit.ics.uci.edu/3322

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Till Westmann <tillw@apache.org>

Show less