Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7872

Consider allowing transformations on GlobalKTable before materialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • streams
    • None

    Description

      Current GlobalKTable's interface does not allow any transformations on itself:

      public interface GlobalKTable<K, V> {
          /**
           * Get the name of the local state store that can be used to query this {@code GlobalKTable}.
           *
           * @return the underlying state store name, or {@code null} if this {@code GlobalKTable} cannot be queried.
           */
          String queryableStoreName();
      }
      

      This limits use cases such that users want to read the source topic, and do some filtering / value transformations / reformatting etc before materialize it to the backing state stores for further operations like joins. On the other hand, for KTable today we already allow the source KTable to be filtered / value-mapped etc which would, behind the scene, apply those applications on the fly before materializing to the state stores.

      We should consider adding such functionalities for GlobalKTable as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              guozhang Guozhang Wang
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: