-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[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
06d02ec
f20061b
28cc674
f1c0cd5
17a5861
9cd55ed
e756394
f9b5142
9b0133e
7d4b275
aee1f62
81a426b
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. |
||
"DAYOFYEAR" | ||
"DAYS" | ||
"DECADE" | ||
"DEFAULTS" | ||
|
@@ -578,7 +579,6 @@ | |
"OVERWRITING" | ||
"PARTITIONED" | ||
"PARTITIONS" | ||
"TRY_CAST" | ||
"VIRTUAL" | ||
"ANALYZE" | ||
"COMPUTE" | ||
|
@@ -666,7 +666,6 @@ | |
# Return type of method implementation should be "SqlNode". | ||
# Example: DateFunctionCall(). | ||
builtinFunctionCallMethods: [ | ||
"TryCastFunctionCall()" | ||
"ExplicitModel()" | ||
] | ||
|
||
|
@@ -688,6 +687,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