Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Mar 21, 2024

What changes were proposed in this pull request?

Factor column name handling out of plan.py

Why are the changes needed?

there are too many parameters preprocessing in plan.py, e.g. the column name handling,
there are multiple duplicated helper functions here and there, make it hard to follow some times.

Does this PR introduce any user-facing change?

no, just code refactor

How was this patch tested?

ci

Was this patch authored or co-authored using generative AI tooling?

no

init

init

init

init

init

nit

nit

nit

reuse
@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the plan_clean_up branch March 22, 2024 06:10
HyukjinKwon pushed a commit that referenced this pull request Jun 11, 2024
…ataFrame.select(None)`

### 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants