Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ernesto_costa
Contributor III
Contributor III

Confluent Schema Registry | Subject naming strategy

Hi,

 

when sending data to Confluent Kafka using Schema Registry, and using in the target configuration the following configuration:

ernesto_costa_0-1708441636331.png

 

What is being created on the schema registry is the following:

ernesto_costa_2-1708441801522.png

 

I don't understand why the highlighted part is being added to the subject name of the schema since the strategy is only to use the topic and record name, which is present in the part which is NOT highlighted.

Besides, in the task definition, we have the following configuration:

ernesto_costa_3-1708441926986.png

Is there a way to, when using the topic and record name subject naming strategy, to create it only with the topic name and record name?

Taking the above example, to create a schema in Schema Registry named "raw.EG3DTRGN.ORDHVDT1.DataRecord-value"?

Labels (1)
9 Replies
SushilKumar
Support
Support

Hello Team,

Request you to follow below section in Qlik help link. 

Data message publishing

Schema Registry subject properties

Setting general connection properties #Setting general connection properties | Qlik Replicate Help

Regards,

Sushil Kumar

 

john_wang
Support
Support

Hello @ernesto_costa ,

You may custom the namespace expression even with the "Include Namespace" enabled. For example change the expression from com.attunity.queue.msg.{{TASK_NAME}}.{{TARGET_TABLE_OWNER}}.{{TARGET_TABLE_NAME}} to {{TARGET_TABLE_OWNER}}.{{TARGET_TABLE_NAME}}:

john_wang_0-1708772205335.png

Then the result in Kafka schams topic:

{
"keytype": "SCHEMA",
"subject": "dbo.kit-dbo.kit.DataRecord-value",
"version": 1,
"magic": 1
}

where "dbo" is the schema name and "kit" is table name in SQL Server source DB.

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!
SushilKumar
Support
Support

Hello Team,

 

If our response has been helpful, please consider clicking "Accept as Solution". This will assist other users in easily finding the answer.

 

Regards,

Sushil Kumar

ernesto_costa
Contributor III
Contributor III
Author

I'm going to validate and then provide feedback.

 

Thank you.

john_wang
Support
Support

Thank you for the update @ernesto_costa , Good luck.

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

Hi John,

 

the suggestion you made does not fix the issue.

By choosing to include the namespace the minimum name possible to achieve is by removing the entries in the namespace text box, as seen below

ernesto_costa_1-1709310694901.png

 

 and what is generated in schema registry is what can be seen below

ernesto_costa_0-1709310627822.png

As it can be seen, the expected result would be

  • cdc.aspect4.EG3DT.XLPLKDP1-value
  • cdc.aspect4.EG3DT.XLPLKDP1-key

But what is created has the following subjects

  • cdc.aspect4.EG3DT.XLPLKDP1-.DataRecord-value
  • cdc.aspect4.EG3DT.XLPLKDP1-.KeyRecord-key

 

Btw, the DataRecord and KeyRecord entries cannot be removed or else the task fails to start as seen below:

ernesto_costa_2-1709310932419.png

So, our question remains unresolved.

john_wang
Support
Support

Hello @ernesto_costa ,

Thanks for the update.

I got below result in my labs, where "dbo" is source table owner name, "kit" is the table name:

{
    "keytype": "SCHEMA",
    "subject": "dbo.kit-value",
    "version": 1,
    "magic": 1
}

We need 2 steps:

1. In Kafka endpoint setting, set "Subject name strategy" to "Topic Name":

    john_wang_0-1709463601859.png

2. In Task setting, set Namespace to "{{TARGET_TABLE_OWNER}}.{{TARGET_TABLE_NAME}}":

    john_wang_1-1709463701935.png

 

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!
ernesto_costa
Contributor III
Contributor III
Author

Hi John,

 

thanks, going to validate and will provide feedback ASAP.

john_wang
Support
Support

Hello @ernesto_costa ,

Thanks for the feedback!

Good luck,

John.

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