AndzejS3
(Andzej Sokolovski)
May 2, 2025, 9:09am
1
I need to read from Kafka with AVRO, but something is wrong with parsing.
Does Pega support deserializing AVRO logical types like decimal?
My example schema excerpt is this
{ “type”: “record”,
“name”: “example”,
“fields”: [
{ “name”: “myProperty”, “type”: { “type”: “bytes”, “logicalType”: “decimal”, “precision”: 5, “scale”: 3 } },
]
}
Result seems like parsing error {?} – attached
AndzejS3
(Andzej Sokolovski)
June 20, 2025, 11:34am
2
There was a hotfix provided by Pega for this use case HFIX-C1852. This fix will be included in Pega’25
Pega will not fully process the data, but will provide you with value like this: [ENC:BASE64]AIw=
This [ENC:BASE64]AIw= corresponds to 0.140 in my case
So here are the steps you need to do:
decode from base64 to byte array
convert bytes into hex and construct a string
parse the string with something like Integer.decode()
construct BigDecimal or whatever you need
satyad97
(satya deleep)
April 3, 2026, 3:30am
3
Hi,
I am reading the file chunks of an pdf in a multiple kafka messages …the source team is publishing the pdf as base64 but while receiving kafka dataset is encoidng again ….and i am facing issues like in the final document i see black images while decocing and formaing a pdf out of it…