Apache NiFi ExecuteSQL 处理器中的错误:org.apache.avro.UnresolvedUnionException:不在联合 ["null","long"]

Error in Apache NiFi ExecuteSQL Processor: org.apache.avro.UnresolvedUnionException: Not in union ["null","long"]

Table 架构: id BIGINT(20), UNSIGNED INT, 自动递增 account_id 整数 (64),无符号整数,可以为空

有人能解决这个错误吗? 我正在使用 Apache NiFi 0.7.0

这是 NiFi 处理相对于 Avro 的 BigInteger 对象的方式中的一个错误,我已经在 Apache Jira 中编写了它:

https://issues.apache.org/jira/browse/NIFI-2531

如果可以重新定义您的列类型,您可以选择适合内部 "long" 对象的类型,例如 MySQL 中的 INT(19) 或其他就这样。