aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/main/codegen/includes/parserImpls.ftl
diff options
context:
space:
mode:
authorVolodymyr Vysotskyi <vvovyk@gmail.com>2017-12-08 15:05:03 +0200
committerVolodymyr Vysotskyi <vvovyk@gmail.com>2018-01-16 12:10:13 +0200
commitd59f0cda481d98a15d11ecbfb1463db53c954dfb (patch)
tree4658bcd15dd1904ba30c169c52332ad1f8e24e71 /exec/java-exec/src/main/codegen/includes/parserImpls.ftl
parent9274cb9204c6ebf5bd2d13fe4d02af5cebb48fa5 (diff)
DRILL-3993: Changes to support Calcite 1.15.
Fix AssertionError: type mismatch for tests with aggregate functions. Fix VARIANCE agg function Remove using deprecated Subtype enum Fix 'Failure while loading table a in database hbase' error Fix 'Field ordinal 1 is invalid for type '(DrillRecordRow[*])'' unit test failures
Diffstat (limited to 'exec/java-exec/src/main/codegen/includes/parserImpls.ftl')
-rw-r--r--exec/java-exec/src/main/codegen/includes/parserImpls.ftl12
1 files changed, 6 insertions, 6 deletions
diff --git a/exec/java-exec/src/main/codegen/includes/parserImpls.ftl b/exec/java-exec/src/main/codegen/includes/parserImpls.ftl
index 502c5b3e7..813461d83 100644
--- a/exec/java-exec/src/main/codegen/includes/parserImpls.ftl
+++ b/exec/java-exec/src/main/codegen/includes/parserImpls.ftl
@@ -154,19 +154,19 @@ SqlNodeList ParseOptionalFieldList(String relType) :
/** Parses a required field list and makes sure no field is a "*". */
SqlNodeList ParseRequiredFieldList(String relType) :
{
- SqlNodeList fieldList;
+ Pair<SqlNodeList, SqlNodeList> fieldList;
}
{
<LPAREN>
fieldList = ParenthesizedCompoundIdentifierList()
<RPAREN>
{
- for(SqlNode node : fieldList)
+ for(SqlNode node : fieldList.left)
{
- if (((SqlIdentifier)node).isStar())
+ if (((SqlIdentifier) node).isStar())
throw new ParseException(String.format("%s's field list has a '*', which is invalid.", relType));
}
- return fieldList;
+ return fieldList.left;
}
}
@@ -357,7 +357,7 @@ SqlNode SqlDropFunction() :
/**
* Parses a comma-separated list of simple identifiers.
*/
-SqlNodeList ParenthesizedCompoundIdentifierList() :
+Pair<SqlNodeList, SqlNodeList> ParenthesizedCompoundIdentifierList() :
{
List<SqlIdentifier> list = new ArrayList<SqlIdentifier>();
SqlIdentifier id;
@@ -367,7 +367,7 @@ SqlNodeList ParenthesizedCompoundIdentifierList() :
(
<COMMA> id = SimpleIdentifier() {list.add(id);}) *
{
- return new SqlNodeList(list, getPos());
+ return Pair.of(new SqlNodeList(list, getPos()), null);
}
}
</#if> \ No newline at end of file