Skip to content
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

5.5.0 version,oracle Federation mode failed #32802

Closed
zhouxinhai opened this issue Sep 6, 2024 · 4 comments
Closed

5.5.0 version,oracle Federation mode failed #32802

zhouxinhai opened this issue Sep 6, 2024 · 4 comments

Comments

@zhouxinhai
Copy link

zhouxinhai commented Sep 6, 2024

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

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)

shardingsphere.yml:

sqlFederation:
  sqlFederationEnabled: true
  allQueryUseSQLFederation: false
  executionPlanCache:
    initialCapacity: 2000
    maximumSize: 65535
@strongduanmu
Copy link
Member

Yes, SQL Federation just support MySQL, PostgreSQL and openGauss. Other databases are not yet compatible.

@zhouxinhai
Copy link
Author

Yes, SQL Federation just support MySQL, PostgreSQL and openGauss. Other databases are not yet compatible.

In the future, is there any plan to support Oracle? Which version will be supported?

@strongduanmu
Copy link
Member

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.

Copy link

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants