[ https://issues.apache.org/jira/browse/FLINK-39653 ]
Taranpreet Kaur deleted comment on FLINK-39653:
-----------------------------------------
was (Author: JIRAUSER312402):
What needs to be changed
Before: IndexGeneratorFactory takes List<DataType>, internally extracts
LogicalType from each
After: IndexGeneratorFactory takes List<LogicalType> directly, callers do
the extraction
The logic will be identical — the conversion DataType::getLogicalType just
moved from inside the factory to the callers. The callers are @Internal classes
that already depend on DataType, so there's no violation there.
The factory's public method signature now only exposes LogicalType, which
satisfies the architecture rule.
In short
It's a API boundary enforcement — Flink 2.x requires connectors to only
expose stable public types in their interfaces.
LogicalType = stable public API. DataType = evolving API not allowed in
connector method signatures.
> [Connectors/Opensearch] Move to Flink to 2.0.0 - Fix build issue
> ----------------------------------------------------------------
>
> Key: FLINK-39653
> URL: https://issues.apache.org/jira/browse/FLINK-39653
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Opensearch
> Reporter: Taranpreet Kaur
> Priority: Major
> Fix For: opensearch-2.1.0
>
>
> Even after applying the fix in Jira FLINK-37652, the build was failing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)