diff --git a/sql/storm-sql-core/pom.xml b/sql/storm-sql-core/pom.xml
index 3625f941240..4d775b10ea2 100644
--- a/sql/storm-sql-core/pom.xml
+++ b/sql/storm-sql-core/pom.xml
@@ -46,7 +46,7 @@
ricetons@gmail.com
-
+
org.apache.storm
@@ -142,6 +142,16 @@
4.1
test
+
+ com.google.guava
+ guava
+ ${guava.version}
+
+
+ org.immutables
+ value
+ 2.9.3
+
src/jvm
@@ -266,7 +276,7 @@
org.freemarker
freemarker
- 2.3.25-incubating
+ 2.3.31
@@ -306,7 +316,7 @@
org.codehaus.mojo
javacc-maven-plugin
- 3.0.0
+ 3.0.1
generate-sources
diff --git a/sql/storm-sql-core/src/codegen/data/Parser.tdd b/sql/storm-sql-core/src/codegen/data/Parser.tdd
index 5fc2f201018..496a71c166c 100644
--- a/sql/storm-sql-core/src/codegen/data/Parser.tdd
+++ b/sql/storm-sql-core/src/codegen/data/Parser.tdd
@@ -59,7 +59,15 @@
dataTypeParserMethods: [
]
+ # if this list is empty then an empty "()" section is generated and it leads to parsing error in calcite 1.17.0
+ # and higher. Use three keywords arbitrarily chosen to have least impact if removed.
nonReservedKeywords: [
+ "SPACE",
+ "UPSERT"
+ ]
+
+ nonReservedKeywordsToAdd: [
+ "ALTER"
]
createStatementParserMethods: [
@@ -77,12 +85,6 @@
builtinFunctionCallMethods: [
]
- nonReservedKeywordsToAdd: [
- "userkeyword1",
- "userkeyword2",
- "userkeyword3"
- ]
-
binaryOperatorsTokens: [
]