conduktor.io ↗

KIP-941 — Range queries to accept null lower and upper bounds

Accepted Kafka 3.7 Streams

Changes RangeQuery.withRange(K lower, K upper) to treat null bounds as absent (using Optional.ofNullable), so null lower/upper bounds implicitly widen to unbounded rather than throwing or using null as a literal key. Callers receiving nullable query parameters from HTTP clients had to write explicit null-checking logic before constructing a RangeQuery.

Details

AuthorLucia Cerchie
StatusAccepted
Kafka Version3.7
JIRAKAFKA-15126
WikiView on Apache Wiki
Created2023-06-15
Last Modified2023-08-08
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.