Skip to content

Document concrete types for batch trigger metadata - #241

Open
Arnab Nandy (arnabnandy7) wants to merge 1 commit into
Azure:devfrom
arnabnandy7:docs/kafka-batch-metadata
Open

Document concrete types for batch trigger metadata#241
Arnab Nandy (arnabnandy7) wants to merge 1 commit into
Azure:devfrom
arnabnandy7:docs/kafka-batch-metadata

Conversation

@arnabnandy7

Copy link
Copy Markdown

Description

Clarifies how collection-valued trigger metadata should be bound in Java functions.

For Kafka triggers using Cardinality.MANY, metadata must use concrete array or collection element types, such as:

@BindingName("TopicArray") String[] topics
@BindingName("OffsetArray") long[] offsets

Object[] is not supported for collection metadata and can cause a ClassCastException in the Java worker conversion path.

Changes

  • Documented supported Kafka batch metadata examples in the README.
  • Added the same guidance to the BindingName Javadoc.
  • Clarified that Object[] is unsupported for collection metadata.

Validation

  • Change is documentation-only.

Fixes #229

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@arnabnandy7
Arnab Nandy (arnabnandy7) requested a review from a team as a code owner August 8, 2026 16:07
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[KafkaTrigger] Errors while retrieving function metadata using BindingName in cardinality=Cardinality.MANY mode

1 participant