[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815915#comment-16815915
 ] 

ASF subversion and git services commented on ASTERIXDB-2539:
------------------------------------------------------------

Commit 393215edef5f0482ed92c932790c87015202cb44 in asterixdb's branch 
refs/heads/master from Dmitry Lychagin
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=393215e ]

[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 <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Till Westmann <[email protected]>


> Exclude LET variables from "Single Variable Resolution" rule
> ------------------------------------------------------------
>
>                 Key: ASTERIXDB-2539
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2539
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>    Affects Versions: 0.9.4
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>             Fix For: 0.9.4.2
>
>
> When applying "Single Variable Resolution" rule described in 
> https://ci.apache.org/projects/asterixdb/sqlpp/manual.html#Variable_bindings_and_name_resolution
> We should only consider variables defined by FROM clause and ignore variables 
> defined by subsequent LET clauses. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to