Skip to content

Commit 8827726

Browse files
committed
Shorten rust side docstring since it's duplicative of the exposed python docstring
1 parent 0fc78b7 commit 8827726

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

crates/core/src/codec.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,21 +247,16 @@ impl PythonLogicalCodec {
247247
&self.inner
248248
}
249249

250-
/// Whether Python-defined UDFs are encoded inline (and decoded
251-
/// from cloudpickle blobs). Defaults to `true`. Set to `false`
252-
/// when the codec sits on a session that must produce
253-
/// cross-language wire bytes, or reject `cloudpickle.loads` on
254-
/// untrusted `from_bytes` input.
250+
/// Toggle inline encoding of Python UDFs. See
251+
/// `SessionContext.with_python_udf_inlining` (Python) for full
252+
/// behavior and use cases.
255253
///
256254
/// Security scope: strict mode (`false`) narrows only the codec
257255
/// layer — it stops `Expr::from_bytes` from invoking
258256
/// `cloudpickle.loads` on the inline `DFPY*` payload. It does
259257
/// **not** make `pickle.loads(untrusted_bytes)` safe; treat every
260258
/// `pickle.loads` on untrusted input as unsafe regardless of this
261-
/// setting. See Python's [pickle module security warning][1] for
262-
/// why `pickle.loads` is unsafe in general.
263-
///
264-
/// [1]: https://docs.python.org/3/library/pickle.html#module-pickle
259+
/// setting.
265260
pub fn with_python_udf_inlining(mut self, enabled: bool) -> Self {
266261
self.python_udf_inlining = enabled;
267262
self

0 commit comments

Comments
 (0)