peilinqian commented on issue #22170: URL: https://github.com/apache/shardingsphere/issues/22170#issuecomment-1348099695
**version** ``` we find java version: java8, full_version=1.8.0_282, full_path=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64/bin/java ShardingSphere-5.2.2-SNAPSHOT Commit ID: dirty-631fdf40f87223e176abe5c851a51b3287b4d6de Commit Message: Fix wrong decide result when execute same sharding condition subquery with sql federation (https://github.com/apache/shardingsphere/pull/22754) Branch: https://github.com/apache/shardingsphere/commit/631fdf40f87223e176abe5c851a51b3287b4d6de Build time: 2022-12-12T10:48:40+0800 ``` **result :pass** ``` new_db=> create table t_ssdb_tb(id int,c_id int,a int,b char(10)); CREATE TABLE new_db=> insert into t_ssdb_tb values (1,1,10,'test11'),(1,2,10,'Test12'),(1,2,null,'test12'), new_db-> (2,1,20,'test21'),(2,2,20,'test22'),(2,3,null,'Test22'), new_db-> (3,3,null,'test3'),(3,3,null,'test3'),(4,4,40,'test4'),(5,5,50,'Test5'); INSERT 0 10 new_db=> select avg(id),a from t_ssdb_tb group by a; avg | a --------+---- 1.0000 | 10 2.0000 | 20 4.0000 | 40 5.0000 | 50 2.2500 | (5 rows) ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
