This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/master by this push:
new 971135d42 [SEDONA-534] Disable Python warning message of finding jars
(#1344)
971135d42 is described below
commit 971135d429853b336027dac2a926a298eb5e79e1
Author: Jia Yu <[email protected]>
AuthorDate: Thu Apr 18 23:26:27 2024 -0700
[SEDONA-534] Disable Python warning message of finding jars (#1344)
---
python/sedona/core/jvm/config.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/python/sedona/core/jvm/config.py b/python/sedona/core/jvm/config.py
index 12351aec8..96bc22ebe 100644
--- a/python/sedona/core/jvm/config.py
+++ b/python/sedona/core/jvm/config.py
@@ -187,10 +187,9 @@ class SparkJars:
try:
used_jar_files = java_spark_conf.get(value)
- except Py4JJavaError as java_error:
- error_message = "Failed to get the value of {} from SparkConf:
{}".format(
- value, java_error
- )
+ except Py4JJavaError:
+ error_message = "Didn't find the value of {} from
SparkConf".format(value)
+ logging.info(error_message)
return used_jar_files, error_message