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 2026/09/29 15:35:31 UTC
[PR] Replace missing SQL Federation provider exception with SPI exception [shardingsphere]
terrymanu opened a new pull request, #40005:
URL: https://github.com/apache/shardingsphere/pull/40005
(no comment)
--
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: [PR] Replace missing SQL Federation provider exception with SPI exception [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu merged PR #40005:
URL: https://github.com/apache/shardingsphere/pull/40005
--
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: [PR] Replace missing SQL Federation provider exception with SPI exception [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on PR #40005:
URL: https://github.com/apache/shardingsphere/pull/40005#issuecomment-5893459183
### Result
**Review Result: Mergeable**
The local changes replace the exception without changing SQL Federation provider selection.
### Evidence
- Deleted `SQLFederationProviderNotFoundException`. At `SQLFederationProviderFactory.java:51`, a failed `findService` lookup now throws `ServiceProviderNotFoundException`. The `null → CALCITE` mapping, error for an explicitly unknown type, and duplicate-type check remain unchanged.
- Updated five test classes covering the factory, rule creation, ALTER validation, Calcite, and NONE providers to assert the complete `SPI-00001` message. All **32 targeted tests passed**. Spotless, Checkstyle for the four affected modules, and `git diff --check` passed. No references to the deleted class or old error code remain in source, tests, or related resources.
- Compatibility impact is limited to the exception type, error code, and message when a provider is missing. The class is absent from the `5.5.3` tag and was introduced on September 25, 2026. The versions on the [official release list](https://shardingsphere.apache.org/document/current/en/downloads/) do not include it, so no published class contract requiring preservation was found.
### Coverage
This is a standalone local candidate. The review covered seven task files: the deleted exception, the factory, and five test classes for the factory, rule, ALTER, Calcite, and NONE providers. The original baseline was `8928250b419`. Before coding, the workspace had fast-forwarded to `93a5a20e117`; that commit did not change `kernel/sql-federation`. Two pre-existing untracked cache directories were left untouched. This conclusion covers code and local verification only; CI was not reviewed.
--
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