This is an automated email from the ASF dual-hosted git repository.
danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/master by this push:
new 5c2b158 [CALCITE-3931] Add LOOKAHEAD(2) for methods defined in
createStatementParserMethods
5c2b158 is described below
commit 5c2b15814b4fbe42a4f1d720ad99719c68c0448b
Author: yuzhao.cyz <[email protected]>
AuthorDate: Thu Apr 16 19:38:42 2020 +0800
[CALCITE-3931] Add LOOKAHEAD(2) for methods defined in
createStatementParserMethods
The default LOOKAHEAD is 1 which is very probably to conflict,
especially for custom parse block like SqlCreate.
Sets the LOOKAHEAD(2) to reduce conflict.
---
core/src/main/codegen/templates/Parser.jj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/codegen/templates/Parser.jj
b/core/src/main/codegen/templates/Parser.jj
index eebd80c..db60271 100644
--- a/core/src/main/codegen/templates/Parser.jj
+++ b/core/src/main/codegen/templates/Parser.jj
@@ -3938,7 +3938,7 @@ SqlCreate SqlCreate() :
<#-- additional literal parser methods are included here -->
<#list parser.createStatementParserMethods as method>
create = ${method}(s, replace)
- <#sep>|</#sep>
+ <#sep>| LOOKAHEAD(2) </#sep>
</#list>
)
{