Skip to content

Flink CDC MySQL->Paimon 表中存在大写字母如何处理? #3612

Closed Answered by beryllw
beryllw asked this question in Q&A
Discussion options

You must be logged in to vote

Option B 要怎么做啊,我遇到的问题是字段名大写而不是表名,我在示例中没有看到将字段名改为小写的方法,我在paimon连接器pipeline的sink中添加了配置catalog.properties.allow-upper-case: True,还是报了相同的错误

通过增加transform解决。(如果同时需要表路由,可以增加route,transform和route可以同时生效)
https://nightlies.apache.org/flink/flink-cdc-docs-release-3.2/docs/core-concept/transform/

transform:
  - source-table: mydb.web_order
    projection:ID as id, PRODUCT_NAME as product_name
    description: Convert table field names to lowercase

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Pluto201
Comment options

@beryllw
Comment options

Answer selected by beryllw
@Pluto201
Comment options

@beryllw
Comment options

Comment options

You must be logged in to vote
1 reply
@yuxiqian
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants