Sergey Nuyanzin created FLINK-39812:
---------------------------------------
Summary: Migrate FlinkTypeFactory to java
Key: FLINK-39812
URL: https://issues.apache.org/jira/browse/FLINK-39812
Project: Flink
Issue Type: Technical Debt
Components: Table SQL / Planner
Reporter: Sergey Nuyanzin
Assignee: Sergey Nuyanzin
The main reason here is that this class is relatively often a problem while
Calcite upgrade if something is changed in interfaces (new default methods for
instance)
maven just fails as
{noformat}
[ERROR] error: Error while emitting FlinkTypeFactory.scala
[ERROR] assertion failed:
[ERROR] cannot invokespecial
org/apache/calcite/rel/type/RelDataTypeFactory.leastRestrictive, the interface
is not a direct parent.
[ERROR] while compiling:
.../flink-table-planner/src/main/scala/org/apache/flink/table/planner/calcite/FlinkTypeFactory.scala
[ERROR] during phase: jvm
[ERROR] library version: version 2.12.20
[ERROR] compiler version: version 2.12.20
...
[INFO] last tree to typer: TypeTree(class FlinkHintStrategies)
[INFO] tree tpe:
org.apache.flink.table.planner.hint.FlinkHintStrategies
...
[WARNING] 42 warnings found
[ERROR] one error found
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)