-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
importccl: IMPORT MYSQLDUMP fails on fulltext index definition #29625
Comments
We should just ignore these fulltext indexes; I think this would be a pretty simple change. |
@rolandcrosby it seems like the vitess parsing code just doesn't return a TableSpec when there is a FULLTEXT index. Did you have an idea how this could be fixed without changing the vitess parser? |
@damienhollis I hadn't looked that deeply into the problem. Check with @dt, I think he has the most experience with the Vitess integration. |
My memory is a little fuzzy here, but I believe that vitess' parser's usual behavior when it sees anything it doesn't know how to parse is to nil the whole statement (or maybe just the node?) it was parsing, so I think, even if we ultimately just want to ignore it, we'd still need to teach the parser how to parse All that said, I'm still on the fence if we should do anything with |
As a user that hit this issue, two things would be useful:
I tend to agree that just ignoring them by default could be surprising. |
@damienhollis Yeah, completely agree on both. cc @mwang1026 |
I tried importing the data from the CorpWatch API's MySQL database dumps. Most worked fine, but two failed with the error message
Error: pq: could not read definition for table "company_locations" (possible unsupported type?)
. The offending statement in both table definitions ended up being the FULLTEXT index definition at the end - when I removed those indexes, the tables imported happily.Here's one of the two schemas that wouldn't import because of this issue - the other was company_names.sql. (A third table in this dataset, filings.sql, couldn't be imported because it contained zero dates; see #29298 for that issue).
The text was updated successfully, but these errors were encountered: