Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务起来的时候 meta_snapshot 表的 data字段提示超长 #5268

Open
wushida99 opened this issue Sep 11, 2024 · 8 comments
Open

服务起来的时候 meta_snapshot 表的 data字段提示超长 #5268

wushida99 opened this issue Sep 11, 2024 · 8 comments

Comments

@wushida99
Copy link

com.alibaba.otter.canal.parse.exception.CanalParseException: apply failed caused by : nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='data', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #6 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.h2.jdbc.JdbcSQLDataException: Value too long for column "CHARACTER VARYING": "

@wushida99
Copy link
Author

咋弄啊哥哥们 公司的表确实字段多
image
但是为啥 longtext 都不够呀

@wushida99
Copy link
Author

image
image

@agapple
Copy link
Member

agapple commented Sep 11, 2024

1.1.7的版本么?可以升级下1.1.8

@wushida99
Copy link
Author

1.1.7的版本么?可以升级到1.1.8以下

是用1.1.8的包

@wushida99
Copy link
Author

1.1.7的版本么?可以升级到1.1.8以下

这个data字段的值是我配置的table吗 canal.instance.filter.regex 这个库的所有表的ddl结构 还是说一个表 对应一行meta_snapshot

@wushida99
Copy link
Author

meta_snapshot
我现在拉的源码到idea里面 pom 报错调试不来源码-.....

@sunmuzhi
Copy link

com.alibaba.otter.canal.parse.exception.CanalParseException: apply failed caused by : nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='data', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #6 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.h2.jdbc.JdbcSQLDataException: Value too long for column "CHARACTER VARYING": "

#5086 看看这个,我也是这么解决的

@wushida99
Copy link
Author

com.alibaba.otter.canal.parse.exception.CanalParseException: apply failed caused by : nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='data', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #6 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.h2.jdbc.JdbcSQLDataException: Value too long for column "CHARACTER VARYING": "

#5086 看看这个,我也是这么解决的
老哥 不得行 我试过了的 可能是h2数据库的问题 他的字符串长度有限制的 我的这个数据库的表太多了 有300多张 估计是所有表的建表语句都存一行了超出长度了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants