Hi, I’m working on a test using xk6-kafka extension as the service I need to stress uses kafka events as input.
However, one of the events I need to produce has to be exactly a certain long number such as “7333547711914737990”, which is long and loses some precision when I convert it to a long, being the result “7333547711914738000”.
I need to convert it to a long as in the avro schema I’m using that field is a long, meaning that I can’t send the string.
How can I achieve that? I can’t find either BigInt as an option.
Indeed if I use it as String I can have the entire number, but given the AVRO schema is specified to be long I’m forced to convert it to that data type and then is when I lose the precision of the last digits.