Skip to content

KafkaPubSub avro decimal - only unscaled value is sent to underlying service #3721

Closed as not planned
@GregerTomas

Description

@GregerTomas

What version of Dapr?

v1.14.4, v1.15.3

Expected Behavior

When using avro decimal property

{
 "type": "bytes",
 "logicalType": "decimal",
 "precision": 4,
 "scale": 2
}

Dapr should send probably a string representation of a decimal to a service.

Actual Behavior

Only bytes of unscaled value are sent to a service. Services must handle precision/scale on their own.

Steps to Reproduce the Problem

Setup a Kafka PubSub topic subscriber which uses an avro schema with any decimal property. Publish a message (using any tool). In a underlying service check an incomming request (from Dapr).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions