Commit 74405d8
refactor: keyword-only inlining flag, skip GIL on prefix mismatch
- `SessionContext.with_python_udf_inlining` now keyword-only (`*, enabled`)
to match the documented call style and the existing doctests/tests.
- `refuse_if_inline` and the three `try_decode_python_*` decoders short-
circuit on a `starts_with(family)` check before `Python::attach`, so
plans whose UDFs are not Python-defined no longer pay a GIL acquisition
per decode call. Semantics preserved: `strip_wire_header` already
returns `Ok(None)` when the prefix does not match.
- `datafusion.ipc` module docstring wraps the `set_sender_ctx` example in
`try`/`finally` and notes that the thread-local holds a strong
reference to the installed `SessionContext` until cleared.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a24daf6 commit 74405d8
3 files changed
Lines changed: 32 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
396 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| |||
578 | 587 | | |
579 | 588 | | |
580 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
581 | 593 | | |
582 | 594 | | |
583 | 595 | | |
| |||
834 | 846 | | |
835 | 847 | | |
836 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
837 | 852 | | |
838 | 853 | | |
839 | 854 | | |
| |||
916 | 931 | | |
917 | 932 | | |
918 | 933 | | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
919 | 937 | | |
920 | 938 | | |
921 | 939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
1773 | | - | |
| 1773 | + | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
0 commit comments