You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "FlyingZC (via GitHub)" <gi...@apache.org> on 2023/06/26 03:28:18 UTC
[GitHub] [shardingsphere] FlyingZC opened a new issue, #26567: Sql federation does not support the `is` function
FlyingZC opened a new issue, #26567:
URL: https://github.com/apache/shardingsphere/issues/26567
## Bug Report
### Which version of ShardingSphere did you use?
Master.
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
Proxy.
### Expected behavior
Execute sql successfully.
### Actual behavior
```sql
SQLSTATE[HY000]: General error: 30000 Unknown exception: Unsupported SQL operator: `IS` The SQL being executed was: /* SHARDINGSPHERE_HINT: SHARDING_DATABASE_VALUE= 12538 */ SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'comment_configs' AND `kcu`.`TABLE_NAME` = 'comment_configs'
```
### Reason analyze (If you can)
Sql federation does not support the `is` function now.
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
### Example codes for reproduce this issue (such as a github link).
--
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
[GitHub] [shardingsphere] strongduanmu closed issue #26567: Sql federation does not support the `is` function
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #26567: Sql federation does not support the `is` function
URL: https://github.com/apache/shardingsphere/issues/26567
--
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
[GitHub] [shardingsphere] github-actions[bot] commented on issue #26567: Sql federation does not support the `is` function
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #26567:
URL: https://github.com/apache/shardingsphere/issues/26567#issuecomment-1657254151
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
[GitHub] [shardingsphere] kanha-gupta commented on issue #26567: Sql federation does not support the `is` function
Posted by "kanha-gupta (via GitHub)" <gi...@apache.org>.
kanha-gupta commented on issue #26567:
URL: https://github.com/apache/shardingsphere/issues/26567#issuecomment-1703355056
@FlyingZC This PR :- https://github.com/apache/shardingsphere/pull/25564 solves the issue of "IS" operator for IS NULL and IS NOT NULL operators. Please inform if further work is needed :)
--
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
[GitHub] [shardingsphere] strongduanmu commented on issue #26567: Sql federation does not support the `is` function
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #26567:
URL: https://github.com/apache/shardingsphere/issues/26567#issuecomment-1704664176
Fixed by #25564, thank you for your feedback. @kanha-gupta
--
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