Commit 67715c6
docs: clarify py_session_from_session downcast is defensive
The doc comment implied a foreign FFI session was a real input. No
current path reaches a pure-Python UDTF with a non-SessionState
session: the SQL planner and __call__ both hand a SessionState, and a
ForeignSession would only arrive via FFI-export of the UDTF, which
datafusion-python does not do. Reword to state the guard is defensive
and rewrap the error string.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b57325f commit 67715c6
1 file changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
145 | 152 | | |
146 | 153 | | |
147 | 154 | | |
| |||
0 commit comments