From 527aea41878a0cee3e749a1f18eaf69c8a0d94a2 Mon Sep 17 00:00:00 2001 From: Abhishek Balaji Radhakrishnan Date: Mon, 24 Jun 2024 14:29:54 -0700 Subject: [PATCH] Only call Class.forName(className) in the LogStoreProvider. Should fix https://github.com/delta-io/delta/issues/3299. --- .../kernel/defaults/internal/logstore/LogStoreProvider.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/kernel-defaults/src/main/java/io/delta/kernel/defaults/internal/logstore/LogStoreProvider.java b/kernel/kernel-defaults/src/main/java/io/delta/kernel/defaults/internal/logstore/LogStoreProvider.java index 486a2497763..f470fff5c0a 100644 --- a/kernel/kernel-defaults/src/main/java/io/delta/kernel/defaults/internal/logstore/LogStoreProvider.java +++ b/kernel/kernel-defaults/src/main/java/io/delta/kernel/defaults/internal/logstore/LogStoreProvider.java @@ -93,11 +93,7 @@ static String getLogStoreSchemeConfKey(String scheme) { */ private static Class getLogStoreClass(String logStoreClassName) throws ClassNotFoundException { - return Class.forName( - logStoreClassName, - true /* initialize */, - Thread.currentThread().getContextClassLoader()) - .asSubclass(LogStore.class); + return Class.forName(logStoreClassName).asSubclass(LogStore.class); } private static LogStore createLogStore(