-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[FLINK-35854][table] Upgrade Calcite version to 1.35.0 #26547
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
base: master
Are you sure you want to change the base?
Changes from all commits
3242726
bec22cc
2161225
f7c5c96
19cb1e3
1d284f2
9ba9ab6
929ce63
985e500
0faf592
acc7307
4dc67fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,6 @@ | |
"RESUME" | ||
"TABLES" | ||
"TIMESTAMP_LTZ" | ||
"TRY_CAST" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am curious why TRY_CAST is removed as a keyword. I had assumed it would still be a keyword but Calcite would now provide the implementation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because it was added to keywords on Calcite level, no need to add it one more time |
||
"UNLOAD" | ||
"USE" | ||
"VIEWS" | ||
|
@@ -293,6 +292,8 @@ | |
"DATETIME_DIFF" | ||
"DATETIME_INTERVAL_CODE" | ||
"DATETIME_INTERVAL_PRECISION" | ||
"DAYOFWEEK" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am curious why these 2 re in this list and not in nonReservedKeywordsToAdd. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep in sync with Calcite version https://github.com/apache/calcite/blob/75750b78b5ac692caa654f506fc1515d4d3991d6/core/src/main/codegen/templates/Parser.jj#L7963 |
||
"DAYOFYEAR" | ||
"DAYS" | ||
"DECADE" | ||
"DEFAULTS" | ||
|
@@ -579,7 +580,6 @@ | |
"OVERWRITING" | ||
"PARTITIONED" | ||
"PARTITIONS" | ||
"TRY_CAST" | ||
"VIRTUAL" | ||
"ANALYZE" | ||
"COMPUTE" | ||
|
@@ -667,7 +667,6 @@ | |
# Return type of method implementation should be "SqlNode". | ||
# Example: DateFunctionCall(). | ||
builtinFunctionCallMethods: [ | ||
"TryCastFunctionCall()" | ||
"ExplicitModel()" | ||
] | ||
|
||
|
@@ -689,6 +688,12 @@ | |
"SqlDropExtended" | ||
] | ||
|
||
# List of methods for parsing extensions to "TRUNCATE" calls. | ||
# Each must accept arguments "(SqlParserPos pos)". | ||
# Example: "SqlTruncate". | ||
truncateStatementParserMethods: [ | ||
] | ||
|
||
# Binary operators tokens | ||
binaryOperatorsTokens: [ | ||
] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3061,34 +3061,6 @@ SqlNode SqlReset() : | |
} | ||
} | ||
|
||
|
||
/** Parses a TRY_CAST invocation. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since now |
||
SqlNode TryCastFunctionCall() : | ||
{ | ||
final Span s; | ||
final SqlOperator operator; | ||
List<SqlNode> args = null; | ||
SqlNode e = null; | ||
} | ||
{ | ||
<TRY_CAST> { | ||
s = span(); | ||
operator = new SqlUnresolvedTryCastFunction(s.pos()); | ||
} | ||
<LPAREN> | ||
e = Expression(ExprContext.ACCEPT_SUB_QUERY) { args = startList(e); } | ||
<AS> | ||
( | ||
e = DataType() { args.add(e); } | ||
| | ||
<INTERVAL> e = IntervalQualifier() { args.add(e); } | ||
) | ||
<RPAREN> | ||
{ | ||
return operator.createCall(s.end(this), args); | ||
} | ||
} | ||
|
||
/** | ||
* Parses an explicit Model m reference. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not related to this commit, however seems at some point the version was downgraded in Flink.
There is no critical changes, so should be ok