Skip to content

Commit b05f18b

Browse files
itholicHyukjinKwon
authored andcommitted
[SPARK-51278][FOLLOWUP][DOCS] Update JSON format from documentation
### What changes were proposed in this pull request? This PR followups #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 <haejoon.lee@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent 89e05a8 commit b05f18b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

python/docs/source/development/logger.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ Example log entry:
5757
"exception": {
5858
"class": "Py4JJavaError",
5959
"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 ...",
60-
"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" ...]
60+
"stacktrace": [
61+
{
62+
"class": null,
63+
"method": "deco",
64+
"file": ".../spark/python/pyspark/errors/exceptions/captured.py",
65+
"line": "247"
66+
}
67+
]
6168
},
6269
}
6370

0 commit comments

Comments
 (0)