Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
mouse_keyboard
Contributor
Contributor

Kafka target Change Table message key configurations

Hi,

My kafka destination is connected to the SQL Server as source,  connection is set as below:

- separate topic for each table

- transformation rules to add prefix to schema

mouse_keyboard_0-1721878425462.png

mouse_keyboard_1-1721878540311.png

 

On Full Load:

- Message key is using primary key, and thus the partitioning also is using primary key

On Change Data Capture:

- Message key becomes the timestamp  like "202407080525482000000000000000040249"+"B"

 

Just wondering it is possible to make Full Load and CDC both share the same message key? (There are around 200 tables with mixtures of primary key and composite key, thus I cannot go into each table and define a transformation rule on $partition column separately)

 

Labels (1)
3 Replies
john_wang
Support
Support

Hello @mouse_keyboard ,

Welcome to Qlik Community forum and thanks for reaching out here!

I'm not sure what's the purpose of the transform to "resolve kafka topics". If you intended to specify the topic name , or topic name rule, then please use the $topic, see User Guide Overriding the default settings.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
mouse_keyboard
Contributor
Contributor
Author

Hi John,

 

please ignore the topic name related transformation. My main question is how to make it such that both the full load and the CDC table share the same message key (primary key)

john_wang
Support
Support

Hello @mouse_keyboard ,

Thanks for the update however the behavior cannot be reproduced in my local labs.

IN my env both Full Load and CDC Change Processing produce the correct message key, see my screenshot, the first row is produced in Full Load stage, the 2nd rows is CDC message. The message key is the table's PK value "2":

john_wang_0-1721882730471.png

john_wang_2-1721882860942.png

Regards,

John.

 

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!