JDBC Driver for Apache Kafka

Build 25.0.9434

AllowKeyOnlyRegistryTopics

Specifies whether key-only registry topics are exposed as tables. Only has an effect when TypeDetectionScheme =SchemaRegistry.

Data Type

bool

Default Value

false

Remarks

The driver supports two types of schemas within registries, value schemas and key schemas. By default the driver requires a value schema for all topics. A topic that has only a key schema is not exposed as a table. The key schema is optional and is only used if MessageKeyColumn is set.

When you enable this option, the driver exposes tables that have either a key schema or a value schema (or both). A topic with no value schema returns its message value as a base64 blob. This is similar to the behavior if SerializationFormat=NONE or TypeDetectionScheme=MessageOnly.

Note that this behavior is independent from MessageKeyColumn. Even if this option is set, you must also set MessageKeyColumn if you want to read message key data.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434