Skip to content

Is there any way to support the Bit DataType of Mysql ? #21578

@zhaohaoren

Description

@zhaohaoren

I have a mysql table with a bit column:
image

and create a mysql engine table in clickhouse:

CREATE TABLE t_xxxx(
is_deleted UInt8
) ENGINE = MySQL

when query the table, reponse the follow error:
[2021-03-10 13:24:11] Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = mysqlxx::CannotParseValue: Cannot parse unsigned integer: �, query: SELECT is_deletedFROMtable (version 20.10.3.30 (official build))

I try to use Int8 and String to map this column, but it doesn‘t work very well,is there any other solutions to deal with this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-mysqlMySQL-specific integration (table engine/function/protocol mapping).duplicatefeaturequestionQuestion?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions