on memsql 7.0 in our cluster-in-a-box setup, when I try to run a
TRUNCATE TABLE errored_table
I get the following error:
ERROR 2398 UNKNOWN_ERR_CODE: Leaf Error (127.0.0.1:3307): Failed to ALTER table errored_table: The previous ALTER on the table failed and has not been cleaned up by the background merger. Please run "OPTIMIZE TABLE [table_name] FIX_ALTER" and try again.
Running OPTIMIZE TABLE errored_table doesn’t do anything, and running it with the FIX_ALTER fails with the following error:
ERROR 1064 ER_PARSE_ERROR: Leaf Error (127.0.0.1:3307): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTIMIZE TABLE
database_1.
errored_table FIX_ALTER' at line 1
How can this be fixed?