information_schema and sys relevant SQLs can't parse or route
See original GitHub issueBug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
- Searched open and closed GitHub issues.
- Read documentation: ShardingSphere Doc.
Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
5.0.0-RC1-SNAPSHOT
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
Expected behavior
Get the result from the following SQLs:
show full processlist;
select * from information_schema.processlist ;
select * from information_schema.INNODB_TRX;
select * from sys.schema_redundant_indexes;
Actual behavior
mysql> show full processlist;
Query OK, 0 rows affected (0.06 sec)
Exception in log:
line 1:10 no viable alternative at input 'showfullprocesslist'
mysql> select * from information_schema.processlist;
ERROR 10002 (C1000): 2Unknown exception: [Can not route tables for `[processlist]`, please make sure the tables are in same schema.]
Exception in log:
[ERROR] 18:09:12.379 [ShardingSphere-Command-5] o.a.s.p.f.c.CommandExecutorTask - Exception occur:
org.apache.shardingsphere.infra.exception.ShardingSphereException: Can not route tables for `[processlist]`, please make sure the tables are in same schema.
at org.apache.shardingsphere.sharding.route.engine.type.unconfigured.ShardingUnconfiguredTablesRoutingEngine.route(ShardingUnconfiguredTablesRoutingEngine.java:50)
at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:72)
at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:55)
at org.apache.shardingsphere.infra.route.DataNodeRouter.executeRoute(DataNodeRouter.java:89)
at org.apache.shardingsphere.infra.route.DataNodeRouter.route(DataNodeRouter.java:74)
at org.apache.shardingsphere.proxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.execute(StatementExecutorWrapper.java:67)
at org.apache.shardingsphere.proxy.backend.communication.jdbc.execute.engine.jdbc.JDBCExecuteEngine.execute(JDBCExecuteEngine.java:80)
at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:85)
at org.apache.shardingsphere.proxy.backend.text.query.QueryBackendHandler.execute(QueryBackendHandler.java:55)
at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:78)
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:105)
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:80)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Reason analyze (If you can)
Parse error:
show full processlist;
Route error:
select * from information_schema.processlist;
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
Execute these SQLs straightforwardly.
Example codes for reproduce this issue (such as a github link).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >sql - Postgresql tables exists, but getting "relation does not ...
I have a postgresql db with a number of tables. If I query: SELECT column_name FROM information_schema.columns WHERE table_name="my_table";.
Read more >Learn SQL: The INFORMATION_SCHEMA Database
The INFORMATION_SCHEMA database provides a lot of options to perform checks, automate processes and document your database.
Read more >mysqldump throws: Unknown table 'COLUMN_STATISTICS' in ...
If you are using MySQL Workbench, you will need to set a path to the ... the workbench is unable to parse the...
Read more >Troubleshooting - Apache Drill
You can search JIRA for issues related to the version to see if a patch or workaround ... test2.json`; Query failed: SYSTEM ERROR:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello , this issue has not received a reply for several days. This issue is supposed to be closed.
Hi thanks for your attention. It is an important but challenging feature definitely. We need to make a schedule to support it step by step. Once there is any plan, I will update it here.