You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: DataFrame::select_columns and DataFrame::drop_columns for qualified duplicated field names (#18236)
## Which issue does this PR close?
- Closes#18212.
## Rationale for this change
`DataFrame::drop_columns` only considers one field for each `name`,
it fails to drop columns from dataframe containing duplicated names
from different relations. Such as `mark` columns created by multiples
`Join::LeftMark`.
`DataFrame::select_columns` has the same issue, it fails to select
columns
with the same name from different relations.
## What changes are included in this PR?
Allow `DataFrame::drop_columns` and `DataFrame::select_columns`
work with duplicated names from different relations.
## Are these changes tested?
Yes.
## Are there any user-facing changes?
No.
---------
Co-authored-by: Andrew Lamb <[email protected]>
0 commit comments