This is an automated email from the ASF dual-hosted git repository. xiangfu pushed a commit to branch allow-register-backward-compatible-class-mapping in repository https://gitbox.apache.org/repos/asf/pinot.git
commit f5c009b793b91f7c0e58e4a07b9e2235db44b798 Author: Xiang Fu <[email protected]> AuthorDate: Thu Feb 26 00:05:48 2026 -0800 Adding new API to register backward compatible class names --- .../src/main/java/org/apache/pinot/spi/plugin/PluginManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pinot-spi/src/main/java/org/apache/pinot/spi/plugin/PluginManager.java b/pinot-spi/src/main/java/org/apache/pinot/spi/plugin/PluginManager.java index 4f7caa6db8c..29f96b62cd7 100644 --- a/pinot-spi/src/main/java/org/apache/pinot/spi/plugin/PluginManager.java +++ b/pinot-spi/src/main/java/org/apache/pinot/spi/plugin/PluginManager.java @@ -496,4 +496,9 @@ public class PluginManager { INPUT_FORMAT_TO_RECORD_READER_CONFIG_CLASS_NAME_MAP.put(inputFormat.toLowerCase(), recordReaderConfigClass); } } + + // Register plugin class names when users try to deprecate old plugins/libraries. + public void registerBackwardCompatibleClassName(String oldClassName, String newClassName) { + PLUGINS_BACKWARD_COMPATIBLE_CLASS_NAME_MAP.put(oldClassName, newClassName); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
