Skip to content

Commit

Permalink
[STORM-3884] Further updates to get past some errors - WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bipinprasad authored and rzo1 committed Oct 23, 2023
1 parent dbda79b commit 3caa153
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
16 changes: 13 additions & 3 deletions sql/storm-sql-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<email>[email protected]</email>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>org.apache.storm</groupId>
Expand Down Expand Up @@ -142,6 +142,16 @@
<version>4.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<version>2.9.3</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/jvm</sourceDirectory>
Expand Down Expand Up @@ -266,7 +276,7 @@
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.25-incubating</version>
<version>2.3.31</version>
</dependency>
</dependencies>
<executions>
Expand Down Expand Up @@ -306,7 +316,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
Expand Down
14 changes: 8 additions & 6 deletions sql/storm-sql-core/src/codegen/data/Parser.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -77,12 +85,6 @@
builtinFunctionCallMethods: [
]

nonReservedKeywordsToAdd: [
"userkeyword1",
"userkeyword2",
"userkeyword3"
]

binaryOperatorsTokens: [
]

Expand Down

0 comments on commit 3caa153

Please sign in to comment.