You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by mi...@apache.org on 2025/07/31 06:59:29 UTC

(incubator-gluten) branch main updated: [VL] Avoid using StringUtils.isNotBlank (#10299)

This is an automated email from the ASF dual-hosted git repository.

mingliang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 4f88d92e01 [VL] Avoid using StringUtils.isNotBlank (#10299)
4f88d92e01 is described below

commit 4f88d92e013c325a9274109e038d9074bbc6ff2f
Author: Jiaan Geng <be...@163.com>
AuthorDate: Thu Jul 31 14:59:25 2025 +0800

    [VL] Avoid using StringUtils.isNotBlank (#10299)
---
 .../org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
index e8e793be5c..fe10f97f85 100644
--- a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
+++ b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
@@ -199,12 +199,13 @@ class VeloxListenerApi extends ListenerApi with Logging {
 
     // Load backend libraries.
     val libPath = conf.get(GlutenConfig.GLUTEN_LIB_PATH)
-    if (StringUtils.isNotBlank(libPath)) { // Path based load. Ignore all other loadees.
-      JniLibLoader.loadFromPath(libPath)
-    } else {
+    if (StringUtils.isBlank(libPath)) {
       val baseLibName = conf.get(GlutenConfig.GLUTEN_LIB_NAME)
       loader.load(s"$platformLibDir/${System.mapLibraryName(baseLibName)}")
       loader.load(s"$platformLibDir/${System.mapLibraryName(VeloxBackend.BACKEND_NAME)}")
+    } else {
+      // Path based load. Ignore all other loaderes.
+      JniLibLoader.loadFromPath(libPath)
     }
 
     // Initial native backend with configurations.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org