You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "ym0506 (via GitHub)" <gi...@apache.org> on 2026/02/25 01:59:07 UTC
Re: [I] [Proxy][PostgreSQL] Colocated join inside scalar subquery fails with "relation does not exist" although it is queryable [shardingsphere]
ym0506 commented on issue #37770:
URL: https://github.com/apache/shardingsphere/issues/37770#issuecomment-3956227563
Hi maintainers, I reproduced #37770 on `shardingsphere-proxy 5.5.2` using the provided `ss_postgres.zip` setup.
Observed error:
- `ERROR: relation "t23" does not exist`
In this SQL shape:
- `WHERE NOT ((outer_col) < (scalar subquery with t23 JOIN t22))`
the Proxy `Actual SQL` keeps logical table names `t23` / `t22` instead of rewritten shard tables (`t23_x` / `t22_x`), while the subquery join alone rewrites correctly.
I am preparing a fix and regression test for the PostgreSQL parser path and will post a PR shortly.
--
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