Skip to content

Potential Issue with MySQL ENUM Containing 'point' as one of its values in mysql_ch_replicator #104

@iyiolapeter

Description

@iyiolapeter

First of all, thanks for the great work on mysql_ch_replicator! While running replication, I encountered an issue where MySQL ENUM fields that include 'point' as a value seem to be mistakenly processed as spatial POINT types.

Steps to Reproduce:

Create a MySQL table with an ENUM column that includes 'point' as one of its possible values:

CREATE TABLE test_enum (
id INT PRIMARY KEY AUTO_INCREMENT,
category ENUM('point', 'cash', 'giftcard') NOT NULL
);

Configure mysql_ch_replicator to replicate this table to ClickHouse.

Start the replication process and observe logs or errors mentioning parse_mysql_point() being applied to the ENUM column.

Error Message
ValueError: Invalid binary length for WKB POINT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions