Closed Seapein closed 7 months ago
mysql数据源截图
Change field mappings . Refer to https://seatunnel.apache.org/docs/2.3.3/transform-v2/sql
Change field mappings . Refer to https://seatunnel.apache.org/docs/2.3.3/transform-v2/sql
Hi,I have tried this method before, but it did not take effect: transform { Sql { "result_table_name"=Table12372182520353 "source_table_name"=Table12372182520352 query = "select id as id, code as code, name as name from Table12372182520352 " } }
Try to adjust the following order.
Try to adjust the following order.
hi,what order?
transform { Sql { "result_table_name"=Table12372182520353 "source_table_name"=Table12372182520352 query = "select id as id, name as name,code as code from Table12372182520352 " } }
transform { Sql { "result_table_name"=Table12372182520353 "source_table_name"=Table12372182520352 query = "select id as id, name as name,code as code from Table12372182520352 " } }
Thank you very much for solving my problem!
Search before asking
What happened
source为mysql,sink为clickhouse时,使用FieldMapper,如果mysql与clickhouse的表字段顺序不同,插入到clickhouse后,字段对应的数据会不一致。
SeaTunnel Version
2.3.3
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
使用zeta
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
Code of Conduct