confluent-schema-registry icon indicating copy to clipboard operation
confluent-schema-registry copied to clipboard

Long type support

Open imjuni opened this issue 6 years ago • 3 comments
trafficstars

Hi,

I test kafka.js and avsc, confluent-schema-registry

But I don't found long type support

confluent-schema-registry parse long type to javascript number type it will be loss data!

How can I support long type data without data loss?

imjuni avatar Oct 30 '19 08:10 imjuni

@Nevon any insight on this?

erikengervall avatar Feb 08 '20 22:02 erikengervall

Maybe we should expose the underlying avsc module so that consumers can add custom types themselves, as shown in the avsc documentation.

Another alternative would be to be opinionated and add a BigInt based LongType ourselves, if we drop Node 8 support, but I suspect that would cause quite some issues since suddenly people would start getting BigInts instead of Numbers when decoding longs.

Nevon avatar Feb 09 '20 18:02 Nevon

any progress on this issue?

edqd avatar Jun 25 '20 11:06 edqd