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/02/28 00:12:18 UTC

(spark) branch branch-4.0 updated: [SPARK-51278][FOLLOWUP][DOCS] Update JSON format from documentation

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

gurwls223 pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 6cbb64c327b5 [SPARK-51278][FOLLOWUP][DOCS] Update JSON format from documentation
6cbb64c327b5 is described below

commit 6cbb64c327b5b2c9ddcfb444e485e02502cd923f
Author: Haejoon Lee <ha...@databricks.com>
AuthorDate: Fri Feb 28 09:12:00 2025 +0900

    [SPARK-51278][FOLLOWUP][DOCS] Update JSON format from documentation
    
    ### What changes were proposed in this pull request?
    
    This PR followups https://github.com/apache/spark/pull/50038 to update documentation following the fixed JSON format.
    
    ### Why are the changes needed?
    
    To match the docs with real logging format
    
    ### Does this PR introduce _any_ user-facing change?
    
    No API changes, but the user-facing documentation updated.
    
    ### How was this patch tested?
    
    CI
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #50100 from itholic/json_format_followup.
    
    Authored-by: Haejoon Lee <ha...@databricks.com>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
    (cherry picked from commit b05f18b6424ac492906615534efb610460e9f2c4)
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 python/docs/source/development/logger.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/python/docs/source/development/logger.rst b/python/docs/source/development/logger.rst
index 6160bf814740..3f67e583be1a 100644
--- a/python/docs/source/development/logger.rst
+++ b/python/docs/source/development/logger.rst
@@ -57,7 +57,14 @@ Example log entry:
       "exception": {
         "class": "Py4JJavaError",
         "msg": "An error occurred while calling o52.showString.\n: org.apache.spark.SparkArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set \"spark.sql.ansi.enabled\" to \"false\" to bypass this error. SQLSTATE: 22012\n== DataFrame ==\n\"divide\" was called from\n/path/to/file.py:17 ...",
-        "stacktrace": ["Traceback (most recent call last):", "  File \".../spark/python/pyspark/errors/exceptions/captured.py\", line 247, in deco", "    return f(*a, **kw)", "  File \".../lib/python3.9/site-packages/py4j/protocol.py\", line 326, in get_return_value" ...]
+        "stacktrace": [
+          {
+            "class": null,
+            "method": "deco",
+            "file": ".../spark/python/pyspark/errors/exceptions/captured.py",
+            "line": "247"
+          }
+        ]
       },
     }
 


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