Skip to content

Is ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS essentail for cdc update #99

@qihuagaosh

Description

@qihuagaosh

I have test only with the following config:
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY, UNIQUE) COLUMNS;

It can not recognize update operation, and insert the record anyway.
I think with primary key, the code should be able to update data. Am I wrong?

My topic config:
kafka-topics.sh --bootstrap-server automq-release-kafka.automq.svc.cluster.local:9092
--command-config /tmp/client.properties
--create --topic ORACLE_TEST.HR.EMPLOYEES
--config automq.table.topic.enable=true
--config automq.table.topic.namespace=automq
--config automq.table.topic.commit.interval.ms=60000
--config automq.table.topic.cdc.field=_cdc.op
--config automq.table.topic.upsert.enable=true
--config automq.table.topic.transform.value.type=flatten_debezium
--config automq.table.topic.convert.value.type=by_schema_id
--config automq.table.topic.id.columns=[EMPLOYEE_ID]
--config automq.table.topic.partition.by='[bucket(FIRST_NAME, 3), month(HIRE_DATE)]'
--partitions 3
--replication-factor 3

Thank you in advance for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions