You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/21 08:02:32 UTC

[GitHub] [shardingsphere] JiekerTime opened a new issue #11429: PGSQL Join Query SQL Rewrite Exception

JiekerTime opened a new issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429


   ### Which version of ShardingSphere did you use?
   5.0.0-RC1-SNAPSHOT
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   ![image](https://user-images.githubusercontent.com/76552510/126452999-c0958165-7add-4d0b-b1ec-41b8fcaf0945.png)
   
   ### Actual behavior
   ![image](https://user-images.githubusercontent.com/76552510/126453028-204bc990-f003-4826-bc2c-36e35f402bc7.png)
   
   ### Reason analyze (If you can)
   Rewrite Exception
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   Recreating the environment through [configuration files](https://github.com/apache/shardingsphere/blob/master/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/resources/docker/tbl/postgresql/proxy/conf/config-tbl.yaml) and [init.sql](https://github.com/apache/shardingsphere/blob/master/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/resources/env/tbl/init-sql/postgresql/init.sql)
   
   Exectue `SELECT * FROM t_user u INNER JOIN t_user_item m ON u.user_id=m.user_id`
   
   ### 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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] JiekerTime closed issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
JiekerTime closed issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429


   


-- 
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] JiekerTime commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
JiekerTime commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-890668487


   > @JiekerTime I found that, this error is due to the alias word `u`.
   > Such as `select * from t_user u` can't be paser well.
   > Replace the word `u` to another word can be ok.
   
   Well, the parsing was correct when I was operating the native database, so I think it might be a bug and we'll fix it right?


-- 
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] tuichenchuxin commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-890669885


   > Well, the parsing was correct when I was operating the native database, so I think it might be a bug and we'll fix it right?
   
   @JiekerTime Yes, it's a bug, we'll fix it later.


-- 
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] JiekerTime commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
JiekerTime commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-903569418


   problem solved ! so closed.


-- 
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] tuichenchuxin commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-889136761


   @JiekerTime I found that, this error is due to the alias word `u`.
   Such as `select * from t_user u` can't be paser well.
   Replace the word `u` to another word can be ok.


-- 
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] tuichenchuxin commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-889138160


   ![image](https://user-images.githubusercontent.com/86938616/127499038-110515f0-bbc5-462b-b1d8-b1c6a207fe5c.png)
   baseRule.g4 has rule conflict.
   We will fix this later.


-- 
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] tristaZero commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-886031229


   @tuichenchuxin @strongduanmu Do we have any plan to fix it?


-- 
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] JiekerTime commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
JiekerTime commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-884646716


   > @JiekerTime inner join in pgsql is not supported yet, it will be supported soon.
   
   OK, then I will close the PG-related tests for now


-- 
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] tuichenchuxin commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-884629436


   @JiekerTime inner join in pgsql is not supported yet, it will be supported soon.


-- 
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] JiekerTime commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
JiekerTime commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-890670628


   > > Well, the parsing was correct when I was operating the native database, so I think it might be a bug and we'll fix it right?
   > 
   > @JiekerTime Yes, it's a bug, we'll fix it later.
   
   Okay, looking forward to your good news.
   


-- 
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] tuichenchuxin commented on issue #11429: PGSQL Join Query SQL Rewrite Exception

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #11429:
URL: https://github.com/apache/shardingsphere/issues/11429#issuecomment-886037514


   > @tuichenchuxin @strongduanmu Do we have any plan to fix it?
   
   I'll try to support it next week.


-- 
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