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

INFO[0000] cannot get table 'service1' struct: cannot read indexes: sql: expected 14 destination arguments in Scan, not 13 #43

Open
dagsydags opened this issue Apr 29, 2022 · 1 comment

Comments

@dagsydags
Copy link

dagsydags commented Apr 29, 2022

Probably a similar issue with #27

MariaDB 10.6.5 Centos 7

[root@rafael-dagandan-node3 ~]# ./mysql_random_data_load --host=127.0.0.1 --port=3306 --user=test --password=test test service1 200 --debug
INFO[0000] cannot get table service1 struct: cannot read indexes: sql: expected 14 destination arguments in Scan, not 13

+----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| Table    | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
+----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| service1 |          0 | PRIMARY  |            1 | ID          | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
+----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
1 row in set (0.001 sec)```
@pablowako
Copy link

pablowako commented Aug 23, 2024

This issue is still open, so I'll pile on:

mysql_random_data_load_0.1.12_Linux_x86_64

10.6.18-MariaDB debian-linux-gnu
./mysql_random_data_load c94dev avisos 5 --user root --password ''
INFO[0000] cannot get table avisos struct: cannot read indexes: sql: expected 14 destination arguments in Scan, not 13

MariaDB [c94dev]> show indexes from avisos;

+--------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| Table  | Non_unique | Key_name            | Seq_in_index | Column_name         | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
+--------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| avisos |          0 | PRIMARY             |            1 | id                  | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| avisos |          1 | id2                 |            1 | id2                 | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| avisos |          1 | id3                 |            1 | id3                 | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
+--------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+

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

2 participants