calcite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jh...@apache.org
Subject [4/4] incubator-calcite git commit: Tweak parser.
Date Sun, 23 Nov 2014 10:44:23 GMT
Tweak parser.


Project: http://git-wip-us.apache.org/repos/asf/incubator-calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/c6d66d79
Tree: http://git-wip-us.apache.org/repos/asf/incubator-calcite/tree/c6d66d79
Diff: http://git-wip-us.apache.org/repos/asf/incubator-calcite/diff/c6d66d79

Branch: refs/heads/master
Commit: c6d66d792f86b277304dc48f013824091161e347
Parents: b2a05a1
Author: Julian Hyde <jhyde@apache.org>
Authored: Sun Nov 23 01:43:20 2014 -0800
Committer: Julian Hyde <jhyde@apache.org>
Committed: Sun Nov 23 01:43:20 2014 -0800

----------------------------------------------------------------------
 core/src/main/codegen/templates/Parser.jj | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-calcite/blob/c6d66d79/core/src/main/codegen/templates/Parser.jj
----------------------------------------------------------------------
diff --git a/core/src/main/codegen/templates/Parser.jj b/core/src/main/codegen/templates/Parser.jj
index 9c99d5a..670608e 100644
--- a/core/src/main/codegen/templates/Parser.jj
+++ b/core/src/main/codegen/templates/Parser.jj
@@ -1898,12 +1898,6 @@ SqlNodeList GroupByOpt() :
 {
     <GROUP> { pos = getPos(); }
     <BY> list = GroupingElementList() {
-        if (list.size() == 1
-            && list.get(0) instanceof SqlNodeList) {
-            // Preserve the old behavior that "GROUP BY ()" returns a list
-            // of length 0, not a of length 1 containing an empty list.
-            return (SqlNodeList) list.get(0);
-        }
         return new SqlNodeList(list, pos);
     }
 |


Mime
View raw message