You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "duerwuyi (via GitHub)" <gi...@apache.org> on 2025/12/19 06:56:32 UTC
[I] SQL Federation (PostgreSQL): SELECT version() got `Exception` when `ALL_QUERY_USE_SQL_FEDERATION=true` [shardingsphere]
duerwuyi opened a new issue, #37436:
URL: https://github.com/apache/shardingsphere/issues/37436
## Bug Report
### Which version of ShardingSphere did you use?
shardingsphere-proxy 5.5.2
postgres 17.2 as backend
### Expected behavior
`select version();` should return the string of PG version, like:
```sql
testdb=> select version();
version
--------------------------------------------------------------------------------------------------------------------
PostgreSQL 17.6 (Debian 17.6-2.pgdg13+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
```
### Actual behavior
The following query fails with:
ERROR: SQL federation does not support SQL 'select version();'.
```sql
testdb=> select version();
ERROR: SQL federation does not support SQL 'select version();'.
More details: org.apache.calcite.runtime.CalciteContextException: At line 0, column 0: No match found for function signature version()
```
Though we knew that federation is an experimental feature, common PG functions like `select version()` could better be supported.
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
[ss_postgres.zip](https://github.com/user-attachments/files/24252329/ss_postgres.zip)
run `docker compose up -d` in this file.
SQL to execute are shown above
--
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
Re: [I] SQL Federation (PostgreSQL): SELECT version() got `Exception` when `ALL_QUERY_USE_SQL_FEDERATION=true` [shardingsphere]
Posted by "duerwuyi (via GitHub)" <gi...@apache.org>.
duerwuyi closed issue #37436: SQL Federation (PostgreSQL): SELECT version() got `Exception` when `ALL_QUERY_USE_SQL_FEDERATION=true`
URL: https://github.com/apache/shardingsphere/issues/37436
--
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