dinky icon indicating copy to clipboard operation
dinky copied to clipboard

[Feature][Flink] DataSource sql generated supports cdc and jdbc task different type conversion rules

Open xiaofan2022 opened this issue 1 year ago • 17 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

sql generated by data source supports cdc and jdbc task different type conversion rules。 jdbc type mappingcdc type mapping

Use case

sql generated by data source supports cdc and jdbc task different type conversion rules

Related issues

No response

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

xiaofan2022 avatar Apr 01 '24 06:04 xiaofan2022

Hello @xiaofan2022, this issue is about CDC/CDCSOURCE, so I assign it to @aiwenmo. If you have any questions, you can comment and reply.

你好 @xiaofan2022, 这个 issue 是关于 CDC/CDCSOURCE 的,所以我把它分配给了 @aiwenmo。如有任何问题,可以评论回复。

github-actions[bot] avatar Apr 01 '24 06:04 github-actions[bot]

Support for major connectors such as flink-cdc,flink-jdbc,flink-hive,flink-hudi mainstream sql field type mapping

xiaofan2022 avatar Apr 01 '24 06:04 xiaofan2022

Please explain the purpose and design plan

Zzm0809 avatar Apr 01 '24 13:04 Zzm0809

Purpose: sql generation function automatically generates synchronous sql (type mapping) based on connector Plan: First support jdbc type sql generated field type mapping

xiaofan2022 avatar Apr 08 '24 06:04 xiaofan2022

Purpose: sql generation function automatically generates synchronous sql (type mapping) based on connector Plan: First support jdbc type sql generated field type mapping

Can you implement this function?

Zzm0809 avatar Apr 15 '24 00:04 Zzm0809

I can do the backend. The frontend?

xiaofan2022 avatar Apr 17 '24 03:04 xiaofan2022

I can do the backend. The frontend?

Thank you very much for your participation. Please clarify the front-end requirements, and we will be responsible for their implementation.

aiwenmo avatar Apr 18 '24 15:04 aiwenmo

The front end adds different connector types (such as CDC, JDBC, Hive, Hudi) when generating SQL statements, and the back end maps the corresponding fields according to the official documentation based on the connector type.

xiaofan2022 avatar Apr 20 '24 02:04 xiaofan2022

The front end adds different connector types (such as CDC, JDBC, Hive, Hudi) when generating SQL statements, and the back end maps the corresponding fields according to the official documentation based on the connector type.

you can provide a map data struct example of backend . i will be design the frontend

Zzm0809 avatar Apr 21 '24 14:04 Zzm0809

The front end adds different connector types (such as CDC, JDBC, Hive, Hudi) when generating SQL statements, and the back end maps the corresponding fields according to the official documentation based on the connector type.

I understand whether it can be designed as follows

  1. The front end adds a drop-down box in Generate sql -> Flinksql Tag (values such as: CDC, JDBC, Hive, Hudi)
  2. Then select and call the interface input parameters before adding the connector type input parameters. The interface generates results based on the connector type, and then returns

how?

Zzm0809 avatar Apr 22 '24 01:04 Zzm0809

yes

xiaofan2022 avatar Apr 22 '24 01:04 xiaofan2022

If you want to add flink-cdc type mapping, is to add a new flink-cdc-meta, and then put the corresponding logic into flink- CDC-meta?

xiaofan2022 avatar Apr 22 '24 01:04 xiaofan2022

@aiwenmo What do you think?

Zzm0809 avatar Apr 23 '24 00:04 Zzm0809

Put the corresponding logic into dinky-cdc.

aiwenmo avatar Apr 25 '24 01:04 aiwenmo

Put the corresponding logic into dinky-cdc.

It would be inappropriate to put everything in dinky-cdc. In theory, the column type information on the data source module also needs to use the type conversion here to achieve a unified effect.

Zzm0809 avatar Apr 26 '24 01:04 Zzm0809

Is it possible to maintain different conversion logic for different sources (e.g. flink-cdc,jdbc,hive,hudi) in the conversion logic corresponding to the connector?

xiaofan2022 avatar Apr 30 '24 10:04 xiaofan2022

Hello @, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply.

你好 @, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。

github-actions[bot] avatar Jun 01 '24 00:06 github-actions[bot]