br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Inconsistency between group by and distinct by behavior #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Why does group by's expression list allow the binding of new names, but not the 
distinct by's expression list?

What is the expected output? What do you see instead?

We should allow binding of new names in distinct by's expression list.

What version of the product are you using? On what operating system?

asterix_stabilization revision 588

Please provide any additional information below.

Details from AQL.jj BNF grammar

GroupClause     ::=     "group" "by" ( Variable ":=" )? Expression ( "," ( Variable 
":=" )? Expression )* ( "decor" Variable ":=" Expression ( "," "decor" Variable 
":=" Expression )* )? "with" VariableRef ( "," VariableRef )*

DistinctClause  ::=     "distinct" "by" Expression ( "," Expression )*

Original issue reported on code.google.com by khfaraaz82 on 1 Aug 2012 at 10:36

GoogleCodeExporter commented 8 years ago
Yingyi, I am changing this to a P2.

Original comment by khfaraaz82 on 4 Dec 2012 at 6:36

GoogleCodeExporter commented 8 years ago

Original comment by vinay...@gmail.com on 17 May 2013 at 8:25