Commit ed40c37
fix: reject with_session=True for FFI UDTFs and qualify mutation docs
Raise TypeError when with_session=True is combined with an FFI-exported
table function (one exposing __datafusion_table_function__). The Rust
FFI branch does not consult the flag, so it would silently be dropped;
guard both TableFunction.__init__ and the udtf() convenience entry.
Qualify the doc claim that mutations through the injected session
propagate to the caller: registry mutations do (shared Arc registries),
but config changes do not (SessionConfig is cloned). Mirror the caveat
in TableFunction.__init__ per the user-guide caveats convention.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 12cf674 commit ed40c37
3 files changed
Lines changed: 47 additions & 2 deletions
File tree
- docs/source/user-guide/common-operations
- python
- datafusion
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
469 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1099 | 1110 | | |
1100 | 1111 | | |
1101 | 1112 | | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1102 | 1119 | | |
1103 | 1120 | | |
1104 | 1121 | | |
| |||
1139 | 1156 | | |
1140 | 1157 | | |
1141 | 1158 | | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1142 | 1166 | | |
1143 | 1167 | | |
1144 | 1168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
0 commit comments