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

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

Commit 8671ddf83ed402dce7465759d6399ed84993f967 in asterixdb's branch 
refs/heads/master from [~buyingyi]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=8671ddf ]

Clean up GROUP BY and WITH clause.

- fix ASTERIXDB-971, i.e., the expression to plan translator for FLWOGR without 
a "for";
- fix the scoping for nested WITH clause;
- fix the scoping for nested GROUP BY clause;
- fix default fields in group variables;
- fix/unify the expression substition AST visitor;
- enhance RemoveUnusedAssignAndAggregateRule to be able to remove unused GROUP 
BY
  decoration varaibles;
- clearly sperate SQL++ aggregate functions and SQL-92 aggregate functions, 
i.e.,
  SQL-92 aggregate sugars cannot apply to SQL++ aggregate functions;
- fix PushAggregateIntoGroupbyRule for nested plan deletions;
- enhance RemoveCartesianProductWithEmptyBranchRule;
- add ExtractGroupByDecorVariablesRule;
- add an aggregate function first-element;
- fix ASTERIXDB-1560, an error message issue.

Change-Id: I62fca7f937aa007d97ed87c75cef19f6aa3e5ade
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1050
Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>


> Misleading SQL++ error message when variables are  undefined
> ------------------------------------------------------------
>
>                 Key: ASTERIXDB-1560
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1560
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB, Error Reporting
>            Reporter: Michael J. Carey
>            Assignee: Yingyi Bu
>            Priority: Minor
>
> This query:
>     SELECT u.name AS uname, m.message AS message
>     FROM GleambookUsers u
>     UNNEST GleambookMessages m
>     WHERE m.authorId = user.id;
> Yields this error message:
>     Cannot resolve ambiguous alias (variable) reference for identifier user 
> [AlgebricksException]
> The reference is undefined, not ambiguous, in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to