dapr / dapr/java-sdk

Why does invokeBinding not return metadata to caller?

Open
#765 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
300
Forks
230
Avg merge
1d 20h
Merged PRs (30d)
4

Description

When using SQL binding (tested with Postgres), sidecar is sending metadata and it is available at java-sdk level as well. However sdk only sends data to the caller, it ignores metadata completely.

Use case where metadata is helpful - Insert/Update/Delete queries (exec operation in sidecar) provide number of rows affected and this information is part of metadata. This information is useful for the application hence it should be sent to the caller.

Do we have any helper to get the metadata after invoking invokeBInding? If not, would like to get inputs for the use case.

Refs:
https://docs.dapr.io/reference/components-reference/supported-bindings/postgres/
https://github.com/dapr/java-sdk/blob/866b166e110a1b335396712b74dffe6410d7a7a9/sdk/src/main/java/io/dapr/client/DaprClientGrpc.java#L256

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.