Bug Description:
When executing a CREATE TABLE command with the shards parameter specified as a non-numeric value (e.g. abc), Manticore Search returns a syntax error, but the error message does not reflect the nature of the problem. The current output indicates “unexpected tablename”, which is confusing, rather than explicitly reporting an invalid value for shards. This should not create a table.
MRE
~ searchd
~ mysql -h0 -P1306 -e "CREATE TABLE tbl4 shards=abc rf=1;"
Manticore Search Version:
Manticore 7.4.7 e8a71318d@25031620 dev (columnar 4.1.2 15bbcc7@25031206) (secondary 4.1.2 15bbcc7@25031206) (knn 4.1.2 15bbcc7@25031206)
Operating System Version:
Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Have you tried the latest development version?
Yes
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
Details
Bug Description:
When executing a
CREATE TABLEcommand with theshardsparameter specified as a non-numeric value (e.g. abc), Manticore Search returns a syntax error, but the error message does not reflect the nature of the problem. The current output indicates“unexpected tablename”, which is confusing, rather than explicitly reporting an invalid value forshards. This should not create a table.MRE
Manticore Search Version:
Manticore 7.4.7 e8a71318d@25031620 dev (columnar 4.1.2 15bbcc7@25031206) (secondary 4.1.2 15bbcc7@25031206) (knn 4.1.2 15bbcc7@25031206)
Operating System Version:
Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Have you tried the latest development version?
Yes
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
Details