Closed TruongNT95 closed 7 months ago
@subkanthi looks like a config issue ?
@aadant can you help me for right config pls!!
@TruongNT95 in the description of the problem, i see both _version and version in the table. How can this even work in ClickHouse ?
the sink-connector should determine the name of the version, sign and is_deleted column from the config. sign can be empty. One of is_deleted and sign column should be set. Version column is mandatory.
you can have a sign column and is_deleted, although it is redundant information
please try to define them.
@subkanthi : do you understand the problem here ?
@aadant can you help me for right config pls!!
Hi @TruongNT95 the current version of kafka auto create does not create is_deleted
columns, anyway you can use the light weight version?
We will work on adding a fix for this.
@subkanthi @aadant may i use sign column as is_deleted parameter for ReplacingMergeTree engine? If it does how can i config it for Kafka sink connector?
Guys how can I specify version, and is_deleted column names in the config?
Fixed in 2.0.2
, auto create table should create table with is_deleted
column for kafka.
f1ed5d6333f8 :) show create table temporal_types_YEAR4;
SHOW CREATE TABLE temporal_types_YEAR4
Query id: b49f546f-66b5-45a1-ab30-4da2ec55984e
┌─statement──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ CREATE TABLE datatypes.temporal_types_YEAR4
(
`Type` String,
`Minimum_Value` Int32,
`Mid_Value` Int32,
`Maximum_Value` Int32,
`Null_Value` Nullable(Int32),
`_version` UInt64,
`is_deleted` UInt8
)
ENGINE = ReplacingMergeTree(_version, is_deleted)
PRIMARY KEY Type
ORDER BY Type
SETTINGS index_granularity = 8192 │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
1 row in set. Elapsed: 0.002 sec.
Currently, I want to use _sign or is_deleted column as parameter for ReplacingMergeTree EngineTable in ClickHouse. Auto create table will create table in ClickHouse like below:
Engine of created table as below:
But, when I use Kafka Sink Connector to create table, engine of table show as below:
My Kafka Sink Connector config:
My Debezium Connector config:
My Docker-compose.yaml
What am I doing wrong?