You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "terrymanu (via GitHub)" <gi...@apache.org> on 2024/02/09 16:13:41 UTC

[I] Refactor DistSQLExecutor's test cases [shardingsphere]

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

   At present, we use the raw executor to perform assertion on test cases.
   This approach is not accurate, as it requires manual injection of required dependencies such as database and rule.
   I hope to use `DistSQLQueryExecuteEngine` and `DistSQLUpdateExecuteEngine`, which can create the executor through SPI, and automatically inject dependencies.
   
   The sample please refer to `ShowAuthorityRuleExecutorTest`.
   
   At present, a large number of `DistSQLExecutor` test cases need to be updated, and we sincerely seek the help of the community.
   
   The test cases are:
   
   - [ ] ShowGlobalClockRuleExecutorTest
   - [ ] AlterGlobalClockRuleExecutorTest
   - [ ] ShowSingleTableExecutorTest
   - [ ] ShowDefaultSingleTableStorageUnitExecutorTest
   - [ ] LoadSingleTableExecutorTest
   - [ ] SetDefaultSingleTableStorageUnitExecutorTest
   - [ ] ShowSQLFederationRuleExecutorTest
   - [ ] AlterSQLFederationRuleExecutorTest
   - [ ] ShowSQLParserRuleExecutorTest
   - [ ] AlterSQLParserRuleExecutorTest
   - [ ] ShowSQLTranslatorRuleExecutorTest
   - [ ] AlterSQLTranslatorRuleExecutorTest
   - [ ] ShowTrafficRuleExecutorTest
   - [ ] AlterTrafficRuleExecutorTest
   - [ ] ShowTransactionRuleExecutorTest
   - [ ] AlterTransactionRuleExecutorTest
   - [ ] ShowBroadcastTableRuleExecutorTest
   - [ ] CreateBroadcastTableRuleExecutorTest
   - [ ] DropBroadcastTableRuleExecutorTest
   - [ ] ShowEncryptAlgorithmPluginsResultRowBuilderTest
   - [ ] ShowEncryptRuleExecutorTest
   - [ ] AlterEncryptRuleExecutorTest
   - [ ] CreateEncryptRuleExecutorTest
   - [ ] DropEncryptRuleExecutorTest
   - [ ] ShowMaskRuleExecutorTest
   - [ ] AlterMaskRuleExecutorTest
   - [ ] CreateMaskRuleExecutorTest
   - [ ] DropMaskRuleExecutorTest
   - [ ] ShowReadQueryLoadBalanceAlgorithmPluginsResultRowBuilderTest
   - [ ] ShowReadwriteSplittingRuleExecutorTest
   - [ ] ShowStatusFromReadwriteSplittingRulesExecutorTest
   - [ ] ShowDefaultShadowAlgorithmExecutorTest
   - [ ] ShowShadowAlgorithmsExecutorTest
   - [ ] ShowShadowRuleExecutorTest
   - [ ] ShowShadowTableRulesExecutorTest
   - [ ] ShowDefaultShardingStrategyExecutorTest
   - [ ] ShowShardingAlgorithmExecutorTest
   - [ ] ShowShardingAlgorithmPluginsResultRowBuilderTest
   - [ ] ShowShardingAuditorsExecutorTest
   - [ ] ShowShardingKeyGeneratorExecutorTest
   - [ ] ShowShardingTableNodesExecutorTest
   - [ ] ShowShardingTableReferenceRuleExecutorTest
   - [ ] ShowShardingTableRuleExecutorTest
   - [ ] ShowShardingTableRulesUsedAlgorithmExecutorTest
   - [ ] ShowShardingTableRulesUsedAuditorExecutorTest
   - [ ] ShowShardingTableRulesUsedKeyGeneratorExecutorTest
   - [ ] ShowUnusedShardingAlgorithmsExecutorTest
   - [ ] ShowUnusedShardingAuditorsExecutorTest
   - [ ] ShowUnusedShardingKeyGeneratorExecutorTest
   
   


-- 
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] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #30083: Refactor DistSQLExecutor's test cases
URL: https://github.com/apache/shardingsphere/issues/30083


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1964464476

   Hi @zzzk1 ,
   Please note that some DistSQLExecutor are related to database rules, but were processed as global rules in the test. I fixed it in #30303.


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-2232350560

   > hi @terrymanu, Are we intentionally closing this issue? I noticed there are incomplete tasks remaining in this issue. Thanks
   > 
   > (_edited_) It looks like the issue was closed because I flagged the latest pull request as **Fixes** instead of **Ref**
   
   The issue was closed automatically due to the pull request association. However, this issue has not been fully resolved, and the unchecked checkboxes still require further modifications.


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "zzzk1 (via GitHub)" <gi...@apache.org>.
zzzk1 commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1962377462

   > @zzzk1 Thank you so much. Are you still working on the issue? If yes can I just create a PR for AlterGlobalClockRuleExecutoreTest test?
   
   sure, just go ahead!


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "ilyasahsan123 (via GitHub)" <gi...@apache.org>.
ilyasahsan123 commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-2105414005

   hi @terrymanu, Are we intentionally closing this issue? I noticed there are incomplete tasks remaining in this issue. Thanks


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-2053745605

   There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "zzzk1 (via GitHub)" <gi...@apache.org>.
zzzk1 commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1943764230

   hi, @terrymanu, I would like to get involved in the open source community starting with this issue


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #30083: Refactor DistSQLExecutor's test cases
URL: https://github.com/apache/shardingsphere/issues/30083


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "zzzk1 (via GitHub)" <gi...@apache.org>.
zzzk1 commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1962369311

   > DistSQLUpdateExecuteEngine
   
   @VishalMCF pls look ```DistSQLUpdateExecuteEngine```


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "VishalMCF (via GitHub)" <gi...@apache.org>.
VishalMCF commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1962389572

   @zzzk1 you can go ahead.It is still very confusing actually.


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "VishalMCF (via GitHub)" <gi...@apache.org>.
VishalMCF commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1962366931

   @terrymanu How are we going to refactor AlterGlobalClockRuleExecutoreTest? I am asking this because in current test case we are using the method of buildToBeAlteredRuleConfiguration(sqlStatement). But the class DistSQLQueryExecuteEngine does not have any equivalent method. 
   Also, I cannot use the execute query because the call to TypedSPI method fails. I know I am not able to put things correctly but it is because I am very much new to the project.


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "VishalMCF (via GitHub)" <gi...@apache.org>.
VishalMCF commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1962371753

   @zzzk1 Thank you so much. Are you still working on the issue? If yes can I just create a PR for AlterGlobalClockRuleExecutoreTest test?


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-2059483283

   > Hi @terrymanu , I would like take this issue, if it's not done
   
   Sorry to reply late, please go ahead


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #30083: Refactor DistSQLExecutor's test cases
URL: https://github.com/apache/shardingsphere/issues/30083


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-2170618912

   There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1943883236

   > hi, @terrymanu, I would like to get involved in the open source community starting with this issue
   
   @zzzk1  Welcome onboard!


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


Re: [I] Refactor DistSQLExecutor's test cases [shardingsphere]

Posted by "Mykiiii (via GitHub)" <gi...@apache.org>.
Mykiiii commented on issue #30083:
URL: https://github.com/apache/shardingsphere/issues/30083#issuecomment-1998268051

   Hi @terrymanu , I would like take this issue, if it's not done


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