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 2022/11/26 02:25:24 UTC

[GitHub] [shardingsphere] boyjoy1127 opened a new issue, #22428: How many IT cases is executed by federation sql?

boyjoy1127 opened a new issue, #22428:
URL: https://github.com/apache/shardingsphere/issues/22428

   ## How many IT cases is executed by federation sql?
   
   Run integration test with content of it-evn.properties:
   ```
   #it.run.modes=Standalone,Cluster
   it.run.modes=Standalone
   it.run.additional.cases=false
   
   #it.scenarios=db,tbl,readwrite_splitting,encrypt,shadow,dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,rdl_empty_rules,empty_rules,sharding_and_encrypt,encrypt_and_readwrite_splitting,encrypt_shadow,readwrite_splitting_and_shadow,sharding_and_shadow,sharding_encrypt_shadow
   it.scenarios=db
   
   # it.cluster.env.type=DOCKER,NATIVE
   it.cluster.env.type=NATIVE
   
   # it.cluster.adapters=jdbc,proxy
   it.cluster.adapters=proxy
   
   # it.cluster.databases=MySQL,PostgreSQL,openGauss
   it.cluster.databases=MySQL
   ```
   Add break point at `entry.getValue().decide(.....)`:
   <img width="1264" alt="Pasted Graphic 11" src="https://user-images.githubusercontent.com/101028753/204068785-4bf92319-8086-46da-b861-78b1137a2821.png">
   
   Cases in `dql-integration-test-cases.xml` are executed.
   So only these ten cases are executed by federation sql , right?
   ```
       <test-case sql="select t_order_federate.*, t_order_item_federate_sharding.* from t_order_federate,t_order_item_federate_sharding where t_order_federate.order_id = t_order_item_federate_sharding.item_id" scenario-types="dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion expected-data-source-name="read_dataset" />
       </test-case>
       
       <test-case sql="select t_order_federate.*, t_order_item_federate_sharding.* from t_order_federate, t_order_item_federate_sharding where t_order_federate.order_id = t_order_item_federate_sharding.item_id AND t_order_item_federate_sharding.order_id = ?" scenario-types="dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion parameters="10001:int" expected-data-source-name="read_dataset" />
       </test-case>
       <test-case sql="select t_user_encrypt_federate_sharding.user_id, t_user_encrypt_federate_sharding.pwd, t_user_info.information from t_user_encrypt_federate_sharding, t_user_info where t_user_encrypt_federate_sharding.user_id = t_user_info.user_id order by t_user_encrypt_federate_sharding.user_id" scenario-types="dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion expected-data-source-name="read_dataset" />
       </test-case>
       
       <test-case sql="select t_user_encrypt_federate_sharding.user_id, t_user_encrypt_federate_sharding.pwd, t_user_info.information from t_user_encrypt_federate_sharding, t_user_info where t_user_encrypt_federate_sharding.user_id = t_user_info.user_id and t_user_encrypt_federate_sharding.user_id > ? " scenario-types="dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion parameters="1:int" expected-data-source-name="read_dataset" />
       </test-case>
       
       <test-case sql="select t_order_federate.* from t_order_federate, t_order_item_federate_sharding where t_order_federate.order_id = t_order_item_federate_sharding.item_id ORDER BY t_order_item_federate_sharding.user_id" scenario-types="db,dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion expected-data-source-name="read_dataset" />
       </test-case>
       
       <test-case sql="select t_user_encrypt_federate.user_id, t_user_encrypt_federate.pwd, t_user_info.information from t_user_encrypt_federate, t_user_info where t_user_encrypt_federate.user_id = t_user_info.user_id " scenario-types="dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion expected-data-source-name="read_dataset" />
       </test-case>
       
       <test-case sql="select t_user_encrypt_federate.user_id, t_user_encrypt_federate.pwd, t_user_info.information from t_user_encrypt_federate, t_user_info where t_user_encrypt_federate.user_id = t_user_info.user_id and t_user_encrypt_federate.user_id > ? " scenario-types="dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion parameters="1:int" expected-data-source-name="read_dataset" />
       </test-case>
       <test-case sql="select t_order_federate.*, t_order_item_federate_sharding.* from t_order_federate, t_order_item_federate_sharding where t_order_federate.order_id = t_order_item_federate_sharding.item_id AND t_order_item_federate_sharding.remarks = 't_order_item_federate_sharding' " scenario-types="db,dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting">
           <assertion expected-data-source-name="read_dataset" />
       </test-case>
       <test-case sql="SELECT order_id_sharding AS order_id, user_id, status FROM t_order_federate_sharding WHERE order_id_sharding = ? UNION ALL SELECT order_id, user_id, status FROM t_order_item_federate_sharding WHERE user_id = ?" scenario-types="db,dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting,tbl">
           <assertion parameters="1010:int, 10:int" expected-data-source-name="read_dataset" />
       </test-case>
       <test-case sql="SELECT order_id_sharding AS order_id, user_id, status FROM t_order_federate_sharding WHERE order_id_sharding = ? UNION ALL SELECT order_id, user_id, status FROM t_order_item_federate_sharding WHERE user_id = ?" scenario-types="db,dbtbl_with_readwrite_splitting,dbtbl_with_readwrite_splitting_and_encrypt,sharding_and_encrypt,encrypt_and_readwrite_splitting,tbl">
           <assertion parameters="1010:int, 10:int" expected-data-source-name="read_dataset" />
       </test-case>
   
   ```


-- 
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 #22428: How many IT cases is executed by federation sql?

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #22428: How many IT cases is executed by federation sql?
URL: https://github.com/apache/shardingsphere/issues/22428


-- 
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 #22428: How many IT cases is executed by federation sql?

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

   Which cases are included in sql federation need to be determined according to the logic and configuration of SQL Decider, so it is impossible to give a clear list, you can try to debug to determine.


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