Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORM-3884] Bump calcite-core from 1.14.0 to 1.32.0 #3509

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
<hdrhistogram.version>2.1.10</hdrhistogram.version>
<hamcrest.version>2.2</hamcrest.version>
<elasticsearch.version>5.2.2</elasticsearch.version>
<calcite.version>1.16.0</calcite.version>
<!-- <calcite.version>1.14.0</calcite.version>-->
<calcite.version>1.32.0</calcite.version>
<jedis.version>2.9.0</jedis.version>
<activemq.version>5.18.3</activemq.version>

Expand Down
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
26 changes: 25 additions & 1 deletion sql/storm-sql-core/src/codegen/data/Parser.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
"PARALLELISM",
"STORED",
"TBLPROPERTIES",
"JAR"
"JAR",
"NEGATE",
"TILDE"
]

# List of joinTypes.
joinTypes: [
]

# List of methods for parsing custom SQL statements.
Expand All @@ -53,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 @@ -65,6 +79,15 @@
dropStatementParserMethods: [
]

extraBinaryExpressions: [
]

builtinFunctionCallMethods: [
]

binaryOperatorsTokens: [
]

# List of files in @includes directory that have parser method
# implementations for custom SQL statements, literals or types
# given as part of "statementParserMethods", "literalParserMethods" or
Expand All @@ -73,6 +96,7 @@
"parserImpls.ftl"
]

includePosixOperators: true
includeCompoundIdentifier: true,
includeBraces: true,
includeAdditionalDeclarations: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

public class ColumnConstraint extends SqlLiteral {
private ColumnConstraint(
Object value, SqlTypeName typeName, SqlParserPos pos) {
SqlDdlKeywords value, SqlTypeName typeName, SqlParserPos pos) {
super(value, typeName, pos);
}

Expand Down
Loading