apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.43k stars 957 forks source link

[Bug] flink cdc sync can not support `BIT(n)` data type #1707

Closed zhangjun0x01 closed 1 year ago

zhangjun0x01 commented 1 year ago

Search before asking

Paimon version

master

Compute Engine

flink

Minimal reproduce step

  1. start a flink sync job to sync mysql table to paimon
  2. the mysql table has bit and bit(10) type
  3. now all the mysql bit data type be converted to paimon BOOLEAN .
  4. if the mysql data of the BIT(10) type is B'0000111' , it can not be converted to paimon BOOLEAN.

What doesn't meet your expectations?

it will throws an exception.

Anything else?

No response

Are you willing to submit a PR?

zhuangchong commented 1 year ago

This PR is done and I will close this issue.