You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "GuiwenChen (via GitHub)" <gi...@apache.org> on 2024/12/24 08:05:39 UTC
[I] Table name is keyword error [shardingsphere]
GuiwenChen opened a new issue, #34137:
URL: https://github.com/apache/shardingsphere/issues/34137
## Bug Report
**For English only**, other languages will not accept.
When I use ShardingSphere-proxy for data migration, when the table name is a keyword, such as user or unit, when I use the command:
"MIGRATE TABLE ds_0.user INTO user"
The migration task fails to be created with the following error: ERROR 1064 (42000): You have an error in your SQL syntax: no viable alternative at input 'MIGRATE' near '[@0,0:6='MIGRATE',<449>,1:0]' at line 1.
When I changed it to
“MIGRATE TABLE ds_0.`user` INTO `user`”
The task can be created successfully, but the following error message is displayed in the log:
Can not get meta data for table '`user`' when split by range.
This seems to be a bug, can you fix this problem?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2560816249
<img width="1252" alt="截屏2024-12-24 16 12 51" src="https://github.com/user-attachments/assets/6decc865-3bcd-4978-a711-4bb2d50ced83" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2563421626
You can create a table in source db with keywords, such as user, and then depending on the page: https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-proxy/migration/usage/
The guide starts the migration task so you can reproduce the problem
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2561176693
5.5.1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2562118487
Great, please go ahead @jasneetsingh6114
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "jasneetsingh6114 (via GitHub)" <gi...@apache.org>.
jasneetsingh6114 commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2563240559
Hi Team,
Thank you for assigning this issue to me. I wanted to ask if you could provide guidance on how to reproduce the problem. I am currently referencing the [ShardingSphere Migration documentation](https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/migration/) to understand the context better.
Looking forward to your response.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2564704014
I'm not using the source code, I'm using this
https://www.apache.org/dyn/closer.lua/shardingsphere/5.5.1/apache-shardingsphere-5.5.1-shardingsphere-proxy-bin.tar.gz
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2560813962
<img width="323" alt="截屏2024-12-24 16 10 24" src="https://github.com/user-attachments/assets/1e04e3b4-b11f-4bd8-8f62-a255c4877485" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "jasneetsingh6114 (via GitHub)" <gi...@apache.org>.
jasneetsingh6114 commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2561374644
Hi team,
I noticed the issue regarding migration failure when using reserved keywords like user or unit as table names. This seems to be related to syntax handling and metadata fetching in ShardingSphere-Proxy during migration tasks.
I'd like to contribute by investigating and resolving this issue. Could you please assign it to me? I’ll ensure to follow the contribution guidelines and provide a detailed solution.
Looking forward to your approval!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2560815374
![Uploading 截屏2024-12-24 16.12.51.png…]()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #34137: Table name is keyword error
URL: https://github.com/apache/shardingsphere/issues/34137
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2574080491
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2561151241
What is the version
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "jasneetsingh6114 (via GitHub)" <gi...@apache.org>.
jasneetsingh6114 commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2564572975
@terrymanu I was able to reproduce the error locally with version 5.5.1(apache-shardingsphere-5.5.1-shardingsphere-proxy-bin). Before proceeding with further investigation, I would like to check if the same issue exists in the master branch. Could you please guide me on how to run and debug the master branch code on my local environment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Table name is keyword error [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34137:
URL: https://github.com/apache/shardingsphere/issues/34137#issuecomment-2564703843
我使用的并非源码方式,我使用的是
https://www.apache.org/dyn/closer.lua/shardingsphere/5.5.1/apache-shardingsphere-5.5.1-shardingsphere-proxy-bin.tar.gz
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org