[
https://issues.apache.org/jira/browse/FLINK-29739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881739#comment-17881739
]
xuhuang commented on FLINK-29739:
---------------------------------
Hi, [~lincoln.86xy]
I attempted to relocate some utility classes from the _{{flink-scala}}_ and
_{{flink-streaming-scala}}_ modules into the _{{flink-table-api-scala}}_
module, e.g. _{{org.apache.flink.api.scala.codegen}}_ and
{{{}_org.apache.flink.api.scala.typeutils_{}}}. My intention was to modify the
Flink table module to utilize Java DataStream API instead of Scala DataStream
API, thereby eliminating its dependency on both the {{_flink-scala_}} and
_{{flink-streaming-scala}}_ modules.
Unfortunately, I encountered a Scala-related issue that ultimately led me to
abandon this approach.
I specifically tried to migrate a Scala macro definition,
{_}{{org.apache.flink.api.scala#createTypeInformation}}{_}, to the
{_}{{org.apache.flink.table.api}} package{_}. However, I ran into an
error—though I can't recall the exact message. It likely indicated that macro
definitions and their usage cannot exist within the same module.
Hope this information helps you in making a judgment.Â
> [FLIP-265] Deprecate and remove Scala API support
> -------------------------------------------------
>
> Key: FLINK-29739
> URL: https://issues.apache.org/jira/browse/FLINK-29739
> Project: Flink
> Issue Type: Technical Debt
> Components: API / Scala
> Reporter: Martijn Visser
> Priority: Major
> Labels: 2.0-related
>
> FLIP:
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-265+Deprecate+and+remove+Scala+API+support
--
This message was sent by Atlassian Jira
(v8.20.10#820010)