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

support (IN)VISIBLE index feature #6690

Closed
0x4261756D opened this issue Sep 20, 2023 · 3 comments · Fixed by dolthub/vitess#275
Closed

support (IN)VISIBLE index feature #6690

0x4261756D opened this issue Sep 20, 2023 · 3 comments · Fixed by dolthub/vitess#275
Labels
correctness We don't return the same result as MySQL customer issue enhancement New feature or request

Comments

@0x4261756D
Copy link

There is no support for the VISIBLE and INVISIBLE keywords for indexes.
This is especially bothering since MySQL Workbench always adds one of those keywords when creating an index via the GUI.
Steps to reproduce:

 CREATE TABLE `dolt_test`.`a` (`id` INT, `b` DOUBLE, PRIMARY KEY (`id`), INDEX `c` (`b` ASC) INVISIBLE);

produces

syntax error at position 102 near 'INVISIBLE'
CREATE TABLE `dolt_test`.`a` (`id` INT, `b` DOUBLE, PRIMARY KEY (`id`), INDEX `c` (`b` ASC) INVISIBLE)
@timsehn timsehn added enhancement New feature or request correctness We don't return the same result as MySQL labels Sep 20, 2023
@fulghum
Copy link
Contributor

fulghum commented Sep 20, 2023

Hey @0x4261756D, thanks for reporting this gap! 🙏 Adding syntax support for this (i.e. parsing, but treating it as a no-op) should be pretty easy. I'm wrapping up some testing on another task, then I'll jump on to this and see if I can get our grammar updated to allow this syntax. Stay tuned!

@fulghum
Copy link
Contributor

fulghum commented Sep 20, 2023

The changes to the parser to support this syntax were merged in. Once a few more CI steps complete, I'll be able to cut a release and will let you know when the fix is available to pick up.

@fulghum
Copy link
Contributor

fulghum commented Sep 21, 2023

@0x4261756D – This fix is now available in Dolt 1.16.2.

Thank you for taking the time to file this issue so we could get this fixed! 🙏 Let us know if you run into any other problems with Dolt and we'll be happy to jump on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correctness We don't return the same result as MySQL customer issue enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants