shardingsphere
shardingsphere copied to clipboard
Extracted the DataSource check into RuleDefinationExecuteEngine for all statments that create rule
Fixes #29233 .
Changes proposed in this pull request: Implemented the checkDataSource() method to check if data source exist before creating rule
Before committing this PR, I'm sure that I have checked the following options:
- [ ] My code follows the code of conduct of this project.
- [ ] I have self-reviewed the commit code.
- [ ] I have (or in comment I request) added corresponding labels for the pull request.
- [ ] I have passed maven check locally :
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e. - [ ] I have made corresponding changes to the documentation.
- [ ] I have added corresponding unit tests for my changes.