如何使用confluent-kafka-python生成十进制类型的avro记录?

时间:2018-12-26 08:05:55

标签: python decimal avro confluent

我试图产生一个包含十进制数据的Avro记录,但由于AvroTypeException而失败。

有人可以帮助我正确设置十进制数据吗? 非常感谢。

错误消息在下面

library(tidyverse)
mget(letters[1:4]) %>%
    map(~ gather(.x, key, d) %>%
             select(-key)) %>%
    {do.call(cbind.fill, .)}

这是我的python代码

AvroTypeException: The datum {'unitPrice': Decimal('22')} is not an example of the schema

0 个答案:

没有答案