You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, there are some problems in SQL router. For example, in the Sharding and Broadcast routing logic, some SQL statements do not contain tables. These logics were originally written in the Sharding routing. Later, Broadcast and Single routing were created. These modules copied these routing logics accordingly, or some of them were missing.
Therefore, we can consider adding a routing engine that does not contain table statements to handle SQL routing outside of Sharding, Broadcast, and Single tables.
After adding a new routing engine, the AllSQLRouteExecutor logic in the original routing logic can be deleted. This logic does not consider usage scenarios such as read-write separation, which may cause the SHOW TABLES statement to query duplicate results (all routes to all data sources under the logical library).
add sub-interface TableSQLRouter and DataSourceSQLRouter for SQLRouter
adjust the PartialSQLRouteExecutor logic to route according to TableSQLRouter and DataSourceSQLRouter in turn
add TablelessStatementSQLRouter to handle SQL routing for tableless statements
delete AllSQLRouteExecutor and PartialSQLRouteExecutor and migrate SHOW TABLES and SHOW TABLES STATUS routing logic to TablelessStatementSQLRouter
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem?
No
Describe the feature you would like.
At present, there are some problems in SQL router. For example, in the Sharding and Broadcast routing logic, some SQL statements do not contain tables. These logics were originally written in the Sharding routing. Later, Broadcast and Single routing were created. These modules copied these routing logics accordingly, or some of them were missing.
Therefore, we can consider adding a routing engine that does not contain table statements to handle SQL routing outside of Sharding, Broadcast, and Single tables.
After adding a new routing engine, the AllSQLRouteExecutor logic in the original routing logic can be deleted. This logic does not consider usage scenarios such as read-write separation, which may cause the SHOW TABLES statement to query duplicate results (all routes to all data sources under the logical library).
The text was updated successfully, but these errors were encountered: