[
https://issues.apache.org/jira/browse/FLINK-32286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
luoyuxia updated FLINK-32286:
-----------------------------
Description:
After FLINK-31413, hive-connector will only have flink-table-calcite-bridge
provided dependency and
flink-table-planner test dependency. But in flink-table-planner, it'll shade
com.google.xx to org.apache.flink.calcite.shaded.com.google.xx.
Then it'll result in we compile hive-connector against com.google, but actuall
run against org.apache.flink.calcite.shaded.com.google provided by
flink-table-planner.
It'll bring much pain while developing hive connector. We may need to introduce
a new moulde named flink-hive-table-calcite-bridge to wrap
flink-table-calcite-bridge to do same shadding to flink-table-planner, and then
make flink-connector dependend on flink-hive-table-calcite-bridge.
Remember this should be done after FLINK-30064 in which we'll migrate hive
connector to a dedicated repo, and introduce the wrapper module to the
dedicated repo.
> Align the shade pattern that Hive connector using for calcite related class
> with flink-table-planner
> -----------------------------------------------------------------------------------------------------
>
> Key: FLINK-32286
> URL: https://issues.apache.org/jira/browse/FLINK-32286
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / Hive
> Reporter: luoyuxia
> Priority: Major
>
> After FLINK-31413, hive-connector will only have flink-table-calcite-bridge
> provided dependency and
> flink-table-planner test dependency. But in flink-table-planner, it'll shade
> com.google.xx to org.apache.flink.calcite.shaded.com.google.xx.
> Then it'll result in we compile hive-connector against com.google, but
> actuall run against org.apache.flink.calcite.shaded.com.google provided by
> flink-table-planner.
> It'll bring much pain while developing hive connector. We may need to
> introduce a new moulde named flink-hive-table-calcite-bridge to wrap
> flink-table-calcite-bridge to do same shadding to flink-table-planner, and
> then make flink-connector dependend on flink-hive-table-calcite-bridge.
> Remember this should be done after FLINK-30064 in which we'll migrate hive
> connector to a dedicated repo, and introduce the wrapper module to the
> dedicated repo.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)