Commit 1e4750e
[SPARK-47500][PYTHON][CONNECT][FOLLOWUP] Restore error message for
### What changes were proposed in this pull request?
the refactor PR #45636 changed the error message of `DataFrame.select(None)` from `PySparkTypeError` to `AssertionError`, this PR restore the previous error message
### Why are the changes needed?
error message improvement
### Does this PR introduce _any_ user-facing change?
yes, error message improvement
### How was this patch tested?
added test
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #46930 from zhengruifeng/py_restore_select_error.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>DataFrame.select(None)
1 parent 3fe6abd commit 1e4750e
File tree
2 files changed
+16
-0
lines changed- python/pyspark/sql
- connect
- tests/connect
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
226 | 231 | | |
227 | 232 | | |
228 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
| |||
0 commit comments