-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
bug: specified key was too long; max key length is 255 bytes(innodb does not report errors) #228
Comments
I think we should check the length in primary key just innodb does. |
ACK |
it seems the function handler::max_supported_key_part_length results in the difference . innodb inherit the function,while tianmu/stonedb enginer didn't. |
#define MAX_INDEX_COL_LEN_LARGE 3072
#define REC_ANTELOPE_MAX_INDEX_COL_LEN 768
So, should we add a system variable(default values is false,and key-part-length is 767).if the system variable is true, key-part-length is 3072-1 ? |
max_supported_key_length in tianmu is 1024, this limit the key length, innodb's value is 3500, myrocks's value is 161024;
|
…tes(stoneatom#228) (1). implement tianmu's virtual function max_supported_key_part_length; (2). enlarge max_supported_key_length's return value from 1024 to 16*1024;
…tes(stoneatom#228) (1). implement tianmu's virtual function max_supported_key_part_length; (2). enlarge max_supported_key_length's return value from 1024 to 16*1024;
Describe the problem
Expected behavior
How To Reproduce
Can be created without error
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: