Type mismatch error during MySQL to ClickHouse replication: DataError: Invalid None value in non-Nullable column (email) #242
VladimirDVV
started this conversation in
General
Replies: 2 comments 4 replies
|
We could add a global config option: |
4 replies
|
Fixed in |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi team,
I've encountered a replication issue when syncing data from MySQL (Percona 8.0.43) to ClickHouse 25.8.
The Issue:
The source table in MySQL has a Nullable column, while the destination table in ClickHouse uses a non-Nullable String type with a DEFAULT ''. This is necessary because we use ngrambf_v1 Bloom Filter indexes in ClickHouse, which do not support Nullable types.
When the sync process encounters a NULL value in MySQL, the clickhouse_connect driver (or the integration logic) fails with the following error:
clickhouse_connect.driver.exceptions.DataError: Invalid None value in non-Nullable column, column name: email
Source (MySQL):
Destination (ClickHouse):
mysql_ch_replicator_log.txt
All reactions