Commit a843b37
docs: centralize pickle security caveat, link from codec/context docs
The pickle-on-untrusted-input warning was written out three times: in
the `PythonLogicalCodec::with_python_udf_inlining` rustdoc, in the
matching Python `SessionContext.with_python_udf_inlining` docstring,
and in two places inside `distributing_work.rst` (a free-floating
paragraph at the end of the inlining section plus the dedicated
Security warning block). Three copies of the same load-bearing text
would inevitably drift.
Pick `distributing_work.rst` Security section as canonical:
* Keep the Security warning block intact — it is the single source of
truth.
* Trim the redundant "Note that pickle.loads itself remains unsafe..."
paragraph above it to a one-line summary + Sphinx cross-reference
(`Security`_) so the section header still anchors the link.
* Replace the Python docstring's 5-line warning paragraph with a
one-sentence summary + `:doc:` link to `distributing_work`.
* Replace the rustdoc warning with a one-sentence summary, a relative
pointer to `docs/source/user-guide/io/distributing_work.rst`, and a
link to the upstream Python pickle module security warning so the
rustdoc remains self-contained for someone reading just the crate.
Behavior unchanged; the strict-toggle test continues to assert on the
substring "inlining is disabled", which lives in `refuse_inline_payload`
(separate from these docs).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8aad8da commit a843b37
3 files changed
Lines changed: 17 additions & 21 deletions
File tree
- crates/core/src
- docs/source/user-guide/io
- python/datafusion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 218 | + | |
223 | 219 | | |
224 | | - | |
225 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
319 | 315 | | |
320 | 316 | | |
321 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1802 | 1802 | | |
1803 | 1803 | | |
1804 | 1804 | | |
1805 | | - | |
1806 | | - | |
1807 | | - | |
1808 | | - | |
1809 | | - | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | 1812 | | |
| |||
0 commit comments