You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Patrick Stuedi (Jira)" <ji...@apache.org> on 2021/12/13 12:51:00 UTC

[jira] [Created] (KAFKA-13541) Make IQv2 query/store interface type safe

Patrick Stuedi created KAFKA-13541:
--------------------------------------

             Summary: Make IQv2 query/store interface type safe
                 Key: KAFKA-13541
                 URL: https://issues.apache.org/jira/browse/KAFKA-13541
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Patrick Stuedi
            Assignee: Patrick Stuedi


Currently the new IQv2 interface allows applications to query state stores using subclasses of the Query<V> type. Unfortunately there is currently no way to check that the template type of the query matches the type of the relevant store the query is executed on. As a consequence stores have to do a set of unsafe casts.

This ticket is to explore ways to make the query interface type safe where only type mismatches are detected at compile time.  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)