我试图产生一个包含十进制数据的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