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
sql is simple: "SELECT count(1) FROM USER_INFO A1, USER_COMPANY B1 where A1.USER_ID = B1.USER_ID and A1.USER_ID = 10001000"
table USER_INFO and USER_COMPANY are in different datasouce
If database is mysql, run success. But if database is oracle run failed
14:39:15.725 [main] INFO ShardingSphere-SQL - Logic SQL: SELECT * FROM `logic_db`.`USER_INFO` WHERE CAST(`USER_ID` AS SIGNED) = 10001000
14:39:15.725 [main] INFO ShardingSphere-SQL - Actual SQL: ds_0 ::: SELECT * FROM `USER_INFO` WHERE CAST(`USER_ID` AS SIGNED) = 10001000
14:39:15.728 [main] INFO ShardingSphere-SQL - Logic SQL: SELECT * FROM `logic_db`.`USER_COMPANY` WHERE CAST(`USER_ID` AS SIGNED) = 10001000
14:39:15.728 [main] INFO ShardingSphere-SQL - Actual SQL: ds_1 ::: SELECT * FROM `USER_COMPANY` WHERE CAST(`USER_ID` AS SIGNED) = 10001000
Exception in thread "main" java.sql.SQLException: SQL federation does not support SQL 'SELECT count(1) FROM USER_INFO A1, USER_COMPANY B1 where A1.USER_ID = B1.USER_ID and A1.USER_ID = 10001000'.
at org.apache.shardingsphere.infra.exception.core.external.sql.ShardingSphereSQLException.toSQLException(ShardingSphereSQLException.java:76)
at org.apache.shardingsphere.infra.exception.dialect.SQLExceptionTransformEngine.toSQLException(SQLExceptionTransformEngine.java:54)
at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.executeQuery(ShardingSpherePreparedStatement.java:253)
at indi.zhouxh.main.singleTest(main.java:109)
at indi.zhouxh.main.main(main.java:28)
There is no plan to support Oracle yet. Open source MySQL and PostgreSQL are given higher priority. If you are interested, you are welcome to participate in the development of SQL Federation.
I use 5.5.0 version,run in Federation mode。
sql is simple: "SELECT count(1) FROM USER_INFO A1, USER_COMPANY B1 where A1.USER_ID = B1.USER_ID and A1.USER_ID = 10001000"
table USER_INFO and USER_COMPANY are in different datasouce
If database is mysql, run success. But if database is oracle run failed
shardingsphere.yml:
The text was updated successfully, but these errors were encountered: