redpanda-data / redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
https://redpanda.com
9.65k stars 589 forks source link

datalake/avro: fixed encoding decimal values #24113

Closed mmaslankaprv closed 1 day ago

mmaslankaprv commented 3 days ago

In Java BigInteger.toByteArray() method is used to encode Avro decimals the method returns an array where the first element is the most significant byte of the encoded decimal. This commit fixes Redpanda Avro Bigdecimal encoding.

Backports Required

Release Notes

vbotbuildovich commented 2 days ago

ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/58010#019325aa-ecf6-4abd-8485-be0d3411e004 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/58054#01932a90-d8e0-4f1e-9c55-8930ad3c733b

vbotbuildovich commented 2 days ago

the below tests from https://buildkite.com/redpanda/redpanda/builds/58045#0193294e-c2d6-4e62-932c-6a62350ab24b have failed and will be retried

gtest_raft_rpunit