# Ksqldb different schema to same topic

**URL:** <https://forum.confluent.io/t/ksqldb-different-schema-to-same-topic/9168>\
**Category:** ksqlDB\
**Created:** [24 November 2023 00:39 UTC](https://forum.confluent.io/t/ksqldb-different-schema-to-same-topic/9168 "2023-11-24T00:39:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsk](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@bsk](https://forum.confluent.io/u/bsk)\
**Post date:** [24 November 2023 00:39 UTC](https://forum.confluent.io/t/ksqldb-different-schema-to-same-topic/9168/1 "2023-11-24T00:39:52Z")

</div>

How to send multiple events with different schema to the same topic using ksqldb. I have created a JSON stream and on top  
Of it created a JSON\_SR stream.

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [30 November 2023 06:07 UTC](https://forum.confluent.io/t/ksqldb-different-schema-to-same-topic/9168/2 "2023-11-30T06:07:53Z")

</div>

When you create any stream with JSON\_SR, the deserializer will make a request for the most recent version of the subject (based on topic name) in the Registry. You can override the ID, but otherwise, it is never fetched for every record, as it would for a regular consumer. This mechanism is what allows ksql objects to have a static schema, and therefore cannot support multiple schemas within a topic. For that, you must move down the “[Kafka abstraction funnel](https://yokota.blog/2018/04/19/the-hitchhikers-guide-to-stream-processing/)” to Kafka Streams, or consumer API.

As always, search github issues before asking. [Support multi schema topics · Issue #1267 · confluentinc/ksql · GitHub](https://github.com/confluentinc/ksql/issues/1267)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [24 December 2023 00:40 UTC](https://forum.confluent.io/t/ksqldb-different-schema-to-same-topic/9168/3 "2023-12-24T00:40:15Z")

</div>

This topic was automatically closed after 30 days. New replies are no longer allowed.
