You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2025/01/06 06:00:23 UTC
(spark) branch master updated: [SPARK-48459][FOLLOWUP][MINOR] Cleanup unused global variable
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 56284bfb1e89 [SPARK-48459][FOLLOWUP][MINOR] Cleanup unused global variable
56284bfb1e89 is described below
commit 56284bfb1e894f5f80b53b1dd528090f9a9b3427
Author: Haejoon Lee <ha...@databricks.com>
AuthorDate: Mon Jan 6 15:00:11 2025 +0900
[SPARK-48459][FOLLOWUP][MINOR] Cleanup unused global variable
### What changes were proposed in this pull request?
This PR followups for https://github.com/apache/spark/pull/46789 to remove unused global variable
### Why are the changes needed?
Code cleanup
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
The existing CI should pass
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #49365 from itholic/minor_48459.
Authored-by: Haejoon Lee <ha...@databricks.com>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
python/pyspark/errors/utils.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/python/pyspark/errors/utils.py b/python/pyspark/errors/utils.py
index 5488940645a1..0d01cbb961bb 100644
--- a/python/pyspark/errors/utils.py
+++ b/python/pyspark/errors/utils.py
@@ -259,8 +259,6 @@ def _with_origin(func: FuncT) -> FuncT:
if spark is not None and hasattr(func, "__name__") and is_debugging_enabled():
if is_remote():
- global current_origin
-
# Getting the configuration requires RPC call. Uses the default value for now.
depth = 1
set_current_origin(func.__name__, _capture_call_site(depth))
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org