You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "snuyanzin (via GitHub)" <gi...@apache.org> on 2026/05/13 14:18:32 UTC
[PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
snuyanzin opened a new pull request, #28152:
URL: https://github.com/apache/flink/pull/28152
## What is the purpose of the change
The PR upgrades Calcite to 1.37.0.
It based on the work done within https://github.com/apache/flink/pull/26895
however I don't have permissions to rebase and and some changes there
for that reason I created a new one, also added @michalstutzmann as a coauthor
## Brief change log
Calcite classes, plans, pom, NOTICE
## Verifying this change
Existing tests
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes )
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: ( no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): ( no)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no )
- The S3 file system connector: ( no)
## Documentation
- Does this pull request introduce a new feature? ( no)
- If yes, how is the feature documented? (not applicable)
---
##### Was generative AI tooling used to co-author this PR?
<!--
If generative AI tooling has been used in the process of authoring this PR, please
change the checkbox below to `[X]` followed by the name of the tool, and uncomment the
"Generated-by" line. See the ASF Generative Tooling Guidance for details:
https://www.apache.org/legal/generative-tooling.html
You are responsible for the quality and correctness of every change in this PR
regardless of the tooling used. Low-effort AI-generated PRs will be closed. See
AGENTS.md for the full guidance.
-->
- [ ] Yes (please specify the tool below)
<!--
Generated-by: [Tool Name and Version]
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3273317916
##########
flink-table/flink-table-planner/src/main/resources/META-INF/services/org.codehaus.commons.compiler.ICompilerFactory:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.codehaus.janino.CompilerFactory
Review Comment:
didn't get what exactly jar you are referring
the things I checked
1. it is present in flink-table-planner.jar
2. it is present in flink-table-planner-loader-bundle.jar
also queries from Flink-sql-client continue working
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235022229
##########
flink-table/flink-sql-parser/src/main/java/org/apache/calcite/sql/type/SqlTypeFamily.java:
##########
@@ -78,6 +78,7 @@ public enum SqlTypeFamily implements RelDataTypeFamily {
COLUMN_LIST,
GEO,
VARIANT,
+ FUNCTION,
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235116825
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -39,6 +39,7 @@
import org.apache.calcite.linq4j.function.Experimental;
import org.apache.calcite.linq4j.function.Function1;
import org.apache.calcite.linq4j.function.NonDeterministic;
+import org.apache.calcite.linq4j.function.Predicate1;
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235053810
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/type/RelDataTypeFactoryImpl.java:
##########
@@ -563,8 +563,7 @@ private RelDataType decimalOf2(RelDataType type) {
return createSqlType(SqlTypeName.DECIMAL, 38, 0);
case REAL:
return createSqlType(SqlTypeName.DECIMAL, 14, 7);
- case FLOAT:
- return createSqlType(SqlTypeName.DECIMAL, 14, 7);
+ case FLOAT: // sic
Review Comment:
Synced with Calcite
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java:
##########
@@ -72,13 +72,14 @@
import static com.google.common.collect.ImmutableList.toImmutableList;
import static java.util.Objects.requireNonNull;
+import static org.apache.calcite.rel.type.RelDataType.PRECISION_NOT_SPECIFIED;
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #28152:
URL: https://github.com/apache/flink/pull/28152#issuecomment-4442024132
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "467f5c1b5e5f267b7c07d4e9d780e6d173a8fea8",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "467f5c1b5e5f267b7c07d4e9d780e6d173a8fea8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 467f5c1b5e5f267b7c07d4e9d780e6d173a8fea8 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235179643
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/rules/logical/FlinkPruneEmptyRulesTest.xml:
##########
@@ -152,7 +152,13 @@ LogicalMinus(all=[false])
</Resource>
<Resource name="optimized rel plan">
<![CDATA[
-LogicalValues(tuples=[[]])
+LogicalMinus(all=[false])
+:- LogicalMinus(all=[false])
+: :- LogicalValues(tuples=[[]])
+: +- LogicalProject(EXPR$0=[20], EXPR$1=[2])
+: +- LogicalValues(tuples=[[{ 20, 2 }]])
++- LogicalProject(EXPR$0=[40], EXPR$1=[4])
+ +- LogicalValues(tuples=[[{ 40, 4 }]])
Review Comment:
this is the result of https://issues.apache.org/jira/browse/CALCITE-6044 optimization
however such behavior is only for case of `VALUES`, so probably should be acceptable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235050593
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/metadata/RelMdPredicates.java:
##########
@@ -83,15 +89,6 @@
/**
* Utility to infer Predicates that are applicable above a RelNode.
*
- * <p>The class was copied over because of * CALCITE-6317 * and should be removed after upgraded to
- * calcite-1.37.0.
- *
- * <p>FLINK modifications are at lines
- *
- * <ol>
- * <li>Port fix of CALCITE-6317 (Calcite 1.37.0): Lines 333~357, 402~404
Review Comment:
Ideally bumping to 1.37.0 should be enough to drop this class
The problem is that in 1.37.0 was done https://issues.apache.org/jira/browse/CALCITE-6044
which introduces a bug fixed in https://issues.apache.org/jira/browse/CALCITE-6599
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235076255
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/fun/SqlCastFunction.java:
##########
@@ -226,9 +229,17 @@ public SqlOperandCountRange getOperandCountRange() {
public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) {
final SqlNode left = callBinding.operand(0);
final SqlNode right = callBinding.operand(1);
+ final SqlLiteral format =
+ callBinding.getOperandCount() > 2
+ ? (SqlLiteral) callBinding.operand(2)
+ : SqlLiteral.createNull(SqlParserPos.ZERO);
+
if (SqlUtil.isNullLiteral(left, false) || left instanceof SqlDynamicParam) {
return true;
}
+ if (!SqlUtil.isNull(format)) {
+ throw new ValidationException("CAST with FORMAT is not yet supported");
+ }
Review Comment:
for now fail here in case of `CAST` with `FORMAT`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235102989
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeAssignmentRule.java:
##########
@@ -101,6 +101,7 @@ private SqlTypeAssignmentRule(Map<SqlTypeName, ImmutableSet<SqlTypeName>> map) {
rule.add(SqlTypeName.BIGINT);
rule.add(SqlTypeName.DECIMAL);
rule.add(SqlTypeName.FLOAT);
+ rule.add(SqlTypeName.DOUBLE);
Review Comment:
Synced with Calcite
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java:
##########
@@ -122,6 +122,11 @@ public RelDataType createMapType(RelDataType keyType, RelDataType valueType) {
return canonize(newType);
}
+ @Override
+ public RelDataType createFunctionSqlType(RelDataType parameterType, RelDataType returnType) {
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235105589
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java:
##########
@@ -74,8 +74,8 @@
* <p>FLINK modifications are at lines
*
* <ol>
- * <li>We should use ExtendedSqlRowTypeNameSpec for rows: Lines 1102-1106
- * <li>Should be removed after fixing CALCITE-7062: Lines 1126-1128
+ * <li>We should use ExtendedSqlRowTypeNameSpec for rows: Lines 1084-1087
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3272080496
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/rules/logical/FlinkPruneEmptyRulesTest.xml:
##########
@@ -152,7 +152,13 @@ LogicalMinus(all=[false])
</Resource>
<Resource name="optimized rel plan">
<![CDATA[
-LogicalValues(tuples=[[]])
+LogicalMinus(all=[false])
+:- LogicalMinus(all=[false])
+: :- LogicalValues(tuples=[[]])
+: +- LogicalProject(EXPR$0=[20], EXPR$1=[2])
+: +- LogicalValues(tuples=[[{ 20, 2 }]])
++- LogicalProject(EXPR$0=[40], EXPR$1=[4])
+ +- LogicalValues(tuples=[[{ 40, 4 }]])
Review Comment:
disabled this optimization, now plan here is unchanged
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3234996870
##########
flink-table/flink-sql-parser/src/main/codegen/templates/Parser.jj:
##########
@@ -4796,8 +4841,14 @@ SqlLiteral DateTimeLiteral() :
return SqlLiteral.createUnknown("TIMESTAMP", p, s.end(this));
}
|
- <TIMESTAMP> { s = span(); } <WITH> <LOCAL> <TIME> <ZONE> p = SimpleStringLiteral() {
- return SqlLiteral.createUnknown("TIMESTAMP WITH LOCAL TIME ZONE", p, s.end(this));
+ LOOKAHEAD(2)
+ <TIME> { s = span(); } <WITH> ( <LOCAL> { local = true; } )? <TIME> <ZONE> p = SimpleStringLiteral() {
+ return SqlLiteral.createUnknown("TIME WITH " + (local ? "LOCAL " : "") + "TIME ZONE", p, s.end(this));
+ }
+|
+ LOOKAHEAD(2)
+ <TIMESTAMP> { s = span(); } <WITH> ( <LOCAL> { local = true; } )? <TIME> <ZONE> p = SimpleStringLiteral() {
+ return SqlLiteral.createUnknown("TIMESTAMP WITH " + (local ? "LOCAL " : "") + "TIME ZONE", p, s.end(this));
Review Comment:
So far not supported in Flink's typeFactory, will fail there in case of attempt to use
could be implemented separately
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235028237
##########
flink-table/flink-sql-parser/src/test/java/org/apache/flink/sql/parser/FlinkDDLDataTypeTest.java:
##########
@@ -328,10 +328,6 @@ FIXTURE.intType, nullable(FIXTURE.booleanType)),
+ "', `age` INTEGER 'This is comment', `updated` BOOLEAN NOT NULL 'This as well' >"),
// Test parse throws error.
- createArgumentsTestItem(
Review Comment:
now it is supported in parser
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235152885
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -145,18 +146,26 @@
import java.util.HashMap;
import java.util.HashSet;
import java.util.IdentityHashMap;
+import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
+import java.util.TreeSet;
import java.util.function.BiFunction;
+import java.util.function.Consumer;
import java.util.function.Supplier;
import java.util.function.UnaryOperator;
import java.util.stream.Collectors;
+import java.util.stream.StreamSupport;
+import static com.google.common.base.Preconditions.checkArgument;
Review Comment:
Synced with Calcite
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlCall.java:
##########
@@ -205,7 +205,7 @@ public boolean equalsDeep(@Nullable SqlNode node, Litmus litmus) {
* Returns a string describing the actual argument types of a call, e.g. "SUBSTR(VARCHAR(12),
* NUMBER(3,2), INTEGER)".
*/
- protected String getCallSignature(SqlValidator validator, @Nullable SqlValidatorScope scope) {
+ public String getCallSignature(SqlValidator validator, @Nullable SqlValidatorScope scope) {
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235186699
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/rules/logical/subquery/SubQuerySemiJoinTest.scala:
##########
@@ -1596,9 +1596,6 @@ class SubQuerySemiJoinTest extends SubQueryTestBase {
// LogicalFilter lost variablesSet information.
util.verifyRelPlanNotExpected(sqlQuery1, "joinType=[semi]")
-
- val sqlQuery2 = "SELECT MAX(a) FROM x GROUP BY 1 HAVING EXISTS (SELECT 1 FROM y WHERE d < b)"
- util.verifyRelPlanNotExpected(sqlQuery2, "joinType=[semi]")
Review Comment:
The query itself seems to be invalid (also Oracle, Postgres and other vendors do not like this)
probably makes sense to mention in release notes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235017837
##########
flink-table/flink-sql-parser/src/main/codegen/templates/Parser.jj:
##########
@@ -6208,6 +6247,7 @@ SqlNode BuiltinFunctionCall() :
|
<INTERVAL> e = IntervalQualifier() { args.add(e); }
)
+ [ <FORMAT> format = StringLiteral() { args.add(format); } ]
Review Comment:
This requires being disabled (done in a separate commit).
Since Flink does not have support for this, there are 2 options
1. just ignores `FORMAT` and returns result without looking into that
2. in some corner cases might fail i code generation, for instance
```sql
SELECT CAST('1234-12-12' AS INTEGER FORMAT 'YYYY');
```
For that reason it is disabled in `SqlCastFunction`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235023835
##########
flink-table/flink-sql-parser/src/main/java/org/apache/calcite/sql/type/SqlTypeName.java:
##########
@@ -69,10 +69,13 @@ public enum SqlTypeName {
DATE(PrecScale.NO_NO, false, Types.DATE, SqlTypeFamily.DATE),
TIME(PrecScale.NO_NO | PrecScale.YES_NO, false, Types.TIME, SqlTypeFamily.TIME),
TIME_WITH_LOCAL_TIME_ZONE(
- PrecScale.NO_NO | PrecScale.YES_NO, false, Types.OTHER, SqlTypeFamily.TIME),
+ PrecScale.NO_NO | PrecScale.YES_NO, false, Types.TIME, SqlTypeFamily.TIME),
Review Comment:
Synced with Calcite
##########
flink-table/flink-sql-parser/src/main/java/org/apache/calcite/sql/SqlJoin.java:
##########
@@ -28,6 +27,7 @@
import java.util.List;
import java.util.function.UnaryOperator;
+import static com.google.common.base.Preconditions.checkArgument;
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "twalthr (via GitHub)" <gi...@apache.org>.
twalthr commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3258488018
##########
flink-table/flink-sql-parser/src/main/codegen/templates/Parser.jj:
##########
@@ -6208,6 +6247,7 @@ SqlNode BuiltinFunctionCall() :
|
<INTERVAL> e = IntervalQualifier() { args.add(e); }
)
+ [ <FORMAT> format = StringLiteral() { args.add(format); } ]
Review Comment:
Disabling makes sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3272085422
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/batch/sql/ValuesTest.xml:
##########
@@ -118,7 +118,8 @@ LogicalProject(a=[$0], b=[$1], c=[$2])
</Resource>
<Resource name="optimized exec plan">
<![CDATA[
-Values(tuples=[[{ 1, 2, 3 }]], values=[a, b, c])
Review Comment:
Same reason: https://issues.apache.org/jira/browse/CALCITE-6044
Disabled this optimization, now the plan is unchanged
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/batch/sql/CalcTest.xml:
##########
@@ -115,7 +115,7 @@ LogicalProject(EXPR$0=[$0], EXPR$1=[CAST($1):VARCHAR(2147483647) CHARACTER SET "
</Resource>
<Resource name="optimized exec plan">
<![CDATA[
-Calc(select=[a AS EXPR$0, CAST(b AS VARCHAR(2147483647)) AS EXPR$1])
Review Comment:
Same reason: https://issues.apache.org/jira/browse/CALCITE-6044
Disabled this optimization, now the plan is unchanged
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3268991386
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -5278,7 +5396,10 @@ public static List arrayExcept(List list1, List list2) {
return Arrays.asList(newArray);
} else {
- int posIndex = posInt;
+ // 1-based index.
Review Comment:
this is Calcite's runtime implementation for `ARRAY_INSERT`
1. In Flink we have our own runtime
2. In Flink we don't have `ARRAY_INSERT` (yet)
anyway since we have our own runtime, it doesn't impact us
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin closed pull request #28152: [FLINK-35856][table] Upgrade Calcite to 1.37.0
URL: https://github.com/apache/flink/pull/28152
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235017837
##########
flink-table/flink-sql-parser/src/main/codegen/templates/Parser.jj:
##########
@@ -6208,6 +6247,7 @@ SqlNode BuiltinFunctionCall() :
|
<INTERVAL> e = IntervalQualifier() { args.add(e); }
)
+ [ <FORMAT> format = StringLiteral() { args.add(format); } ]
Review Comment:
This requires being disabled (done in a separate commit).
Since Flink does not have support for this, there are 2 options
1. just ignores `FORMAT` and returns result without looking into that
2. in some corner cases might fail i code generation, for instance
```sql
SELECT CAST('1234-12-12' AS INTEGER FORMAT 'YYYY');
```
For that reason it is disabled
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235121545
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -70,6 +69,7 @@
import org.apache.calcite.sql.SqlIntervalQualifier;
import org.apache.calcite.sql.SqlJoin;
import org.apache.calcite.sql.SqlKind;
+import org.apache.calcite.sql.SqlLambda;
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235107616
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlCall.java:
##########
@@ -205,7 +205,7 @@ public boolean equalsDeep(@Nullable SqlNode node, Litmus litmus) {
* Returns a string describing the actual argument types of a call, e.g. "SUBSTR(VARCHAR(12),
* NUMBER(3,2), INTEGER)".
*/
- protected String getCallSignature(SqlValidator validator, @Nullable SqlValidatorScope scope) {
+ public String getCallSignature(SqlValidator validator, @Nullable SqlValidatorScope scope) {
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235155095
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlGroupedWindowFunction.java:
##########
@@ -26,9 +25,12 @@
import org.apache.calcite.sql.type.SqlReturnTypeInference;
import org.apache.calcite.sql.type.SqlTypeName;
import org.apache.calcite.sql.validate.SqlMonotonicity;
+import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List;
+import static com.google.common.base.Preconditions.checkArgument;
Review Comment:
Synced with Calcite
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java:
##########
@@ -883,7 +883,7 @@ private int[] evaluateIntervalLiteralAsDayToSecond(
// Note: must check two patterns, since fractional second is optional
final int fractionalSecondPrecision = getFractionalSecondPrecision(typeSystem);
String intervalPatternWithFracSec =
- "(\\d+) (\\d{1,2}):(\\d{1,2}):(\\d{1,2})\\.(\\d{1,"
+ "(\\d+) (\\d{1,2}):(\\d{1,2}):(\\d{1,2})\\.(\\d{0,"
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3234990992
##########
flink-table/flink-sql-parser/src/main/codegen/templates/Parser.jj:
##########
@@ -3964,6 +3970,43 @@ SqlNode Expression3(ExprContext exprContext) :
}
}
+/**
+ * Parses a lambda expression.
+ */
+SqlNode LambdaExpression() :
Review Comment:
it allows args to be lambda, since we don't have functions with such args so far, should be ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3269096039
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -5278,7 +5396,10 @@ public static List arrayExcept(List list1, List list2) {
return Arrays.asList(newArray);
} else {
- int posIndex = posInt;
+ // 1-based index.
Review Comment:
The fix in Calcite https://issues.apache.org/jira/browse/CALCITE-6285 changes also only runtime code
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "twalthr (via GitHub)" <gi...@apache.org>.
twalthr commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3266045804
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -5278,7 +5396,10 @@ public static List arrayExcept(List list1, List list2) {
return Arrays.asList(newArray);
} else {
- int posIndex = posInt;
+ // 1-based index.
Review Comment:
Does this also mean a behavioral change for Flink? We should document all changes of this class in our release notes. Ideally covered with a test.
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/batch/sql/CalcTest.xml:
##########
@@ -115,7 +115,7 @@ LogicalProject(EXPR$0=[$0], EXPR$1=[CAST($1):VARCHAR(2147483647) CHARACTER SET "
</Resource>
<Resource name="optimized exec plan">
<![CDATA[
-Calc(select=[a AS EXPR$0, CAST(b AS VARCHAR(2147483647)) AS EXPR$1])
Review Comment:
This looks a bit weird. What is the purpose of still sending the values in this case. Why is this not optimized away? Are the data types of the result still correct?
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/batch/sql/ValuesTest.xml:
##########
@@ -118,7 +118,8 @@ LogicalProject(a=[$0], b=[$1], c=[$2])
</Resource>
<Resource name="optimized exec plan">
<![CDATA[
-Values(tuples=[[{ 1, 2, 3 }]], values=[a, b, c])
Review Comment:
This also looks fishy. What is the reason for this?
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/type/RelDataTypeFactoryImpl.java:
##########
@@ -563,8 +563,7 @@ private RelDataType decimalOf2(RelDataType type) {
return createSqlType(SqlTypeName.DECIMAL, 38, 0);
case REAL:
return createSqlType(SqlTypeName.DECIMAL, 14, 7);
- case FLOAT:
- return createSqlType(SqlTypeName.DECIMAL, 14, 7);
+ case FLOAT: // sic
Review Comment:
Has this implications on Flink or do we override this in subclasses anyways?
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/rules/logical/FlinkPruneEmptyRulesTest.xml:
##########
@@ -152,7 +152,13 @@ LogicalMinus(all=[false])
</Resource>
<Resource name="optimized rel plan">
<![CDATA[
-LogicalValues(tuples=[[]])
+LogicalMinus(all=[false])
+:- LogicalMinus(all=[false])
+: :- LogicalValues(tuples=[[]])
+: +- LogicalProject(EXPR$0=[20], EXPR$1=[2])
+: +- LogicalValues(tuples=[[{ 20, 2 }]])
++- LogicalProject(EXPR$0=[40], EXPR$1=[4])
+ +- LogicalValues(tuples=[[{ 40, 4 }]])
Review Comment:
The results look very inefficient. Values are pretty common, is there a way to restore the old behavior?
##########
flink-table/flink-table-planner/src/main/resources/META-INF/services/org.codehaus.commons.compiler.ICompilerFactory:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.codehaus.janino.CompilerFactory
Review Comment:
Is it guaranteed that this SPI file is in all created JAR artifacts. E.g. table-uber-jar
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/rules/logical/subquery/SubQuerySemiJoinTest.scala:
##########
@@ -1596,9 +1596,6 @@ class SubQuerySemiJoinTest extends SubQueryTestBase {
// LogicalFilter lost variablesSet information.
util.verifyRelPlanNotExpected(sqlQuery1, "joinType=[semi]")
-
- val sqlQuery2 = "SELECT MAX(a) FROM x GROUP BY 1 HAVING EXISTS (SELECT 1 FROM y WHERE d < b)"
- util.verifyRelPlanNotExpected(sqlQuery2, "joinType=[semi]")
Review Comment:
I'm fine with this change. Seems pretty niche to me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3272111506
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/type/RelDataTypeFactoryImpl.java:
##########
@@ -563,8 +563,7 @@ private RelDataType decimalOf2(RelDataType type) {
return createSqlType(SqlTypeName.DECIMAL, 38, 0);
case REAL:
return createSqlType(SqlTypeName.DECIMAL, 14, 7);
- case FLOAT:
- return createSqlType(SqlTypeName.DECIMAL, 14, 7);
+ case FLOAT: // sic
Review Comment:
so far (in 1..37.0) it doesn't have.
More will come with 1.38.0 when java's `Double` will be used for `FLOAT`/`REAL`/`DOUBLE` to proper support `NaN`/`+Infinity`/`-Infinity`
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/type/RelDataTypeFactoryImpl.java:
##########
@@ -563,8 +563,7 @@ private RelDataType decimalOf2(RelDataType type) {
return createSqlType(SqlTypeName.DECIMAL, 38, 0);
case REAL:
return createSqlType(SqlTypeName.DECIMAL, 14, 7);
- case FLOAT:
- return createSqlType(SqlTypeName.DECIMAL, 14, 7);
+ case FLOAT: // sic
Review Comment:
so far (in 1.37.0) it doesn't have.
More will come with 1.38.0 when java's `Double` will be used for `FLOAT`/`REAL`/`DOUBLE` to proper support `NaN`/`+Infinity`/`-Infinity`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235118477
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/fun/SqlMapValueConstructor.java:
##########
@@ -25,12 +24,13 @@
import org.apache.calcite.sql.type.SqlTypeUtil;
import org.apache.calcite.sql.validate.SqlValidatorUtil;
import org.apache.calcite.util.Pair;
-import org.apache.calcite.util.Static;
import org.apache.calcite.util.Util;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List;
-import java.util.Objects;
+
+import static java.util.Objects.requireNonNull;
Review Comment:
Synced with Calcite
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeAssignmentRule.java:
##########
@@ -101,6 +101,7 @@ private SqlTypeAssignmentRule(Map<SqlTypeName, ImmutableSet<SqlTypeName>> map) {
rule.add(SqlTypeName.BIGINT);
rule.add(SqlTypeName.DECIMAL);
rule.add(SqlTypeName.FLOAT);
+ rule.add(SqlTypeName.DOUBLE);
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235157674
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java:
##########
@@ -95,6 +95,7 @@
import org.apache.calcite.rex.RexFieldAccess;
import org.apache.calcite.rex.RexFieldCollation;
import org.apache.calcite.rex.RexInputRef;
+import org.apache.calcite.rex.RexLambdaRef;
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235164930
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlUtil.java:
##########
@@ -77,7 +77,7 @@
/**
* Flink modification because of CALCITE-7027
*
- * <p>Lines 825 ~ 831, should be removed after upgrading to 1.40.
+ * <p>Lines 827 ~ 833, should be removed after upgrading to 1.40.
Review Comment:
just lines correction
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java:
##########
@@ -123,6 +123,7 @@ private StandardConvertletTable() {
// Register aliases (operators which have a different name but
// identical behavior to other operators).
+ addAlias(SqlLibraryOperators.LEN, SqlStdOperatorTable.CHAR_LENGTH);
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235071600
##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -399,10 +400,18 @@ Pattern toPattern() {
* else returns a Pattern object.
*/
private Pattern validateRegexPattern(String regex, String methodName) {
+ return validateRegexPattern(regex, methodName, 0);
Review Comment:
Synced with Calcite
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235199027
##########
flink-table/flink-table-planner/src/main/resources/META-INF/services/org.codehaus.commons.compiler.ICompilerFactory:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.codehaus.janino.CompilerFactory
Review Comment:
newer Janino started to use SPI
https://github.com/janino-compiler/janino/issues/209
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-35856][table] Upgrade Calcite to 1.37.0 [flink]
Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3273317916
##########
flink-table/flink-table-planner/src/main/resources/META-INF/services/org.codehaus.commons.compiler.ICompilerFactory:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.codehaus.janino.CompilerFactory
Review Comment:
didn't get what exactly jar you are referring
the things I checked
1. it is present in flink-table-planner.jar
2. it is present in flink-table-planner-loader-bundle.jar
3. it is present in flink-table-runtime.jar
also queries from Flink-sql-client continue working
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org