-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Is there any way to support the Bit DataType of Mysql ? #21578
Copy link
Copy link
Closed
Labels
comp-mysqlMySQL-specific integration (table engine/function/protocol mapping).MySQL-specific integration (table engine/function/protocol mapping).duplicatefeaturequestionQuestion?Question?
Description
I have a mysql table with a bit column:

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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
comp-mysqlMySQL-specific integration (table engine/function/protocol mapping).MySQL-specific integration (table engine/function/protocol mapping).duplicatefeaturequestionQuestion?Question?