# Re-key Global K-Table

**URL:** <https://forum.confluent.io/t/re-key-global-k-table/7604>\
**Category:** Kafka Streams\
**Created:** [11 April 2023 13:39 UTC](https://forum.confluent.io/t/re-key-global-k-table/7604 "2023-04-11T13:39:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hermanjakobsen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/hermanjakobsen/32/3369_2.png) [@hermanjakobsen](https://forum.confluent.io/u/hermanjakobsen)\
**Post date:** [11 April 2023 13:39 UTC](https://forum.confluent.io/t/re-key-global-k-table/7604/1 "2023-04-11T13:39:23Z")

</div>

Is there a way to re-key a Global K-Table? I have a Streams that I wish to join with a Table. However, the only correlation between these two entities is an ID-field which is only present in the record-values themselves. Therefore, I need to change the key for the table records and the stream records.

---

<div class="post-metadata">

**Author:** ![mjsax](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mjsax/32/3113_2.png) [@mjsax](https://forum.confluent.io/u/mjsax)\
**Post date:** [12 April 2023 03:44 UTC](https://forum.confluent.io/t/re-key-global-k-table/7604/2 "2023-04-12T03:44:54Z")

</div>

You will need to pre-process the global table input topic, and use the result topic of the processing step as input for the global table.

---

<div class="post-metadata">

**Author:** ![hermanjakobsen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/hermanjakobsen/32/3369_2.png) [@hermanjakobsen](https://forum.confluent.io/u/hermanjakobsen)\
**Post date:** [12 April 2023 07:57 UTC](https://forum.confluent.io/t/re-key-global-k-table/7604/3 "2023-04-12T07:57:33Z")

</div>

Is it possible to do this with application internal topics only? We have a somewhat tedious process in our organization for creating external topics, and we would therefore like to reduce the number of external topics if possible.

---

<div class="post-metadata">

**Author:** ![mjsax](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mjsax/32/3113_2.png) [@mjsax](https://forum.confluent.io/u/mjsax)\
**Post date:** [12 April 2023 16:05 UTC](https://forum.confluent.io/t/re-key-global-k-table/7604/4 "2023-04-12T16:05:44Z")

</div>

Not really. The API is designed such that the global-input topic is a user topic, not an internal topic.

---

<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:** [19 April 2023 16:06 UTC](https://forum.confluent.io/t/re-key-global-k-table/7604/5 "2023-04-19T16:06:00Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
