EMR OLAP、一次最多插入不能超过10000行吗?在批量插入的时候报以下错误?

问题1:EMR OLAP、EMR ClickHouse、EMR StarRocks中StarRocks 2.5.3 一次最多插入不能超过10000行吗?在批量插入的时候报以下错误

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression child number 29037 exceeded the maximum 10000

; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression child number 29037 exceeded the maximum 10000 at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:235) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446) at com.sun.proxy.$Proxy140.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:93) at com.sun.proxy.$Proxy146.batchInsert(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 问题2;expr_children_limit是这个参数控制的对吧?

展开
收起
真的很搞笑 2023-06-05 18:47:13 416 分享 版权
1 条回答
写回答
取消 提交回答
  • 回答1:这个限制可以调,但是非常不建议,大数据量的写入不推荐用insert攒批,尽量转为stream load,expr_children_limit 回答2:对,慎用,能让业务调整的一定联系调整一下用stream load,此回答整理自钉群“EMR OLAP(ClickHouse&StarRocks) 用户技术交流群”

    2023-06-05 19:08:51
    赞同 展开评论

大数据领域前沿技术分享与交流,这里不止有技术干货、学习心得、企业实践、社区活动,还有未来。

还有其他疑问?
咨询AI助理