question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kettle to import data into shardingsphere-proxy:Parameter index out of bounds

See original GitHub issue

When I use kettle to import data into shardingsphere-proxy, some table wile appear:caused by : Java sql. SQLException: Parameter index out of bounds. 23393 is not between valid values of 1 and 23392。

But,I am sure that my orginal table is consistent with the target table,and this problem will not occur when I change the target to MySQL sub database.

I used kettle to write a simple transfer,a table input and table outpit, the number of table output copies is 20,and the number of each submission is 3000 , Of Course,after reducing those two items,this error will not occur,but it will be too slow,I hope to help solve it. I put my table creation statement below (sharding key: school_code)

`

CREATE TABLE edudiagnose_dw.dw_student ( school_code varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ‘bj12z’ COMMENT ‘学校编码’, school_term_id int(11) NOT NULL DEFAULT 152 COMMENT ‘学期编码’, diagnostician_id char(13) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT ‘诊断者ID’, school_seq smallint(6) NOT NULL COMMENT ‘学校序号’, id_card_no varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘身份证号码’, stu_sid varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘学号’, stu_uid varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘电子学籍号’, last_school varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘上一个就读学校’, father_career varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘父亲职业’, father_edu_bk varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘父亲受教育程度’, mother_career varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘母亲职业’, mother_edu_bk varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘母亲受教育程度’, group_tag1 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签1’, group_tag2 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签2’, group_tag3 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签3’, group_tag4 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签4’, group_tag5 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签5’, group_tag6 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签6’, group_tag7 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签7’, group_tag8 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签8’, group_tag9 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签9’, group_tag10 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ‘分组标签10’, PRIMARY KEY (school_code, school_term_id, diagnostician_id, school_seq) USING BTREE, INDEX diagnostician_id(diagnostician_id) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; `

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Oct 8, 2022

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.

0reactions
Huletiancommented, Apr 29, 2022

Could you try finding out which SQL caused the exception?

I also want to find the SQL that throws an exception, but I can’t find it. Sorry

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache ShardingSphere document
3. Create YAML configuration file. # JDBC database name. In cluster mode, use this parameter to connect. ShardingSphere-JDBC and ShardingSphere-Proxy.
Read more >
ShardingSphere-Proxy
ShardingSphere -Proxy is positioned as a transparent database proxy. It theoretically supports any client operation data using MySQL, PostgreSQL and ...
Read more >
FAQ - Apache ShardingSphere
[Proxy] How to use suitable database tools connecting ShardingSphere-Proxy? Answer: ShardingSphere-Proxy could be considered as a MySQL server, ...
Read more >
FAQ - Apache ShardingSphere
sql.show configuration is provided in Sharding-Proxy and post-1.5.0 version ... the routed data source printed to info log. sql.show configuration is off in...
Read more >
FAQ - Apache ShardingSphere
sql.show configuration is provided in ShardingSphere-Proxy and post-1.5.0 ... the routed data source printed to info log. sql.show configuration is off in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found