开发者社区> 问答> 正文

json类型字段bug

有个bug在1.0.23下

com.alibaba.otter.canal.parse.exception.CanalParseException: parse row data failed. Caused by: com.alibaba.otter.canal.parse.exception.CanalParseException: parse row data failed. Caused by: java.lang.IllegalArgumentException: illegal json data at com.taobao.tddl.dbsync.binlog.JsonConversion.parse_scalar(JsonConversion.java:150) at com.taobao.tddl.dbsync.binlog.JsonConversion.parse_value(JsonConversion.java:67)

数据库版本 mysql-5.7.11-winx64 数据库结构

CREATE TABLE customer_data ( id bigint(19) unsigned NOT NULL AUTO_INCREMENT, supplier_id bigint(19) unsigned NOT NULL COMMENT '商户id', customer_id bigint(19) unsigned NOT NULL, customer_data json DEFAULT NULL COMMENT '顾客标准属性', customer_ext_data json DEFAULT NULL COMMENT '顾客扩展属性', PRIMARY KEY (id), UNIQUE KEY uk_cust (customer_id) ) ENGINE=InnoDB AUTO_INCREMENT=26036 DEFAULT CHARSET=utf8mb4;

debug后就是149行str_len==0

原提问者GitHub用户yufeng0528

展开
收起
绿子直子 2023-05-09 15:19:55 73 0
1 条回答
写回答
取消 提交回答
  • 给出你有问题的json字符串

    原回答者GitHub用户agapple

    2023-05-10 10:39:37
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载