CrownChu commented on code in PR #7933:
URL: https://github.com/apache/paimon/pull/7933#discussion_r3303267367
##########
paimon-spark/paimon-spark-common/src/main/java/org/apache/paimon/spark/globalindex/GlobalIndexTopologyBuilderUtils.java:
##########
@@ -54,7 +54,17 @@ public class GlobalIndexTopologyBuilderUtils {
}
public static GlobalIndexTopologyBuilder createTopoBuilder(String
indexType) {
+ // Exact match first
GlobalIndexTopologyBuilder builder = FACTORIES.get(indexType);
- return builder == null ? new DefaultGlobalIndexTopoBuilder() : builder;
+ if (builder != null) {
+ return builder;
+ }
+ // Prefix match: e.g. "es-multi-index-diskbbq" matches registered
"es-multi-index"
Review Comment:
done
##########
paimon-spark/paimon-spark-common/src/main/resources/META-INF/services/org.apache.paimon.spark.globalindex.GlobalIndexTopologyBuilder:
##########
@@ -14,3 +14,4 @@
# limitations under the License.
org.apache.paimon.spark.globalindex.btree.BTreeIndexTopoBuilder
+org.apache.paimon.spark.globalindex.ESGlobalIndexTopoBuilder
Review Comment:
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]