Skip to content

Commit

Permalink
[STORM-3884] Partially complete migration to calcite 1.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bipinprasad authored and rzo1 committed Oct 23, 2023
1 parent bbcf89d commit dbda79b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<hdrhistogram.version>2.1.10</hdrhistogram.version>
<hamcrest.version>2.2</hamcrest.version>
<elasticsearch.version>5.2.2</elasticsearch.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.2</activemq.version>
Expand Down
24 changes: 23 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 Down Expand Up @@ -65,6 +71,21 @@
dropStatementParserMethods: [
]

extraBinaryExpressions: [
]

builtinFunctionCallMethods: [
]

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

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 +94,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

0 comments on commit dbda79b

Please sign in to comment.