Commit 461db7d
fix: Add decimal logical type handling in ToAvroDataConverter
Added case for 'decimal' logical type in convertFieldValue method to properly
convert java.math.BigDecimal values to ByteBuffer format expected by Avro.
This fixes the failing AvroFormatWriterTest 'should write decimal data from
the header' test.
(cherry-picked from c6de95d)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5df23bf commit 461db7d
File tree
1 file changed
+7
-1
lines changed- kafka-connect-cloud-common/src/main/scala/io/lenses/streamreactor/connect/cloud/common/sink/conversion
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
| |||
0 commit comments