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
[SPARK-49894][PYTHON][CONNECT] Refine the string representation of column field operations
### What changes were proposed in this pull request?
Refine the string representation of column field operations: `GetField`, `WithField`, and `DropFields`
### Why are the changes needed?
make the string representations consistent between pyspark classic and connect
### Does this PR introduce _any_ user-facing change?
yes
before
```
In [1]: from pyspark.sql import functions as sf
In [2]: c = sf.col("c")
In [3]: c.x
Out[3]: Column<'UnresolvedExtractValue(c, x)'>
```
after
```
In [1]: from pyspark.sql import functions as sf
In [2]: c = sf.col("c")
In [3]: c.x
Out[3]: Column<'c['x']'>
```
### How was this patch tested?
added ut
### Was this patch authored or co-authored using generative AI tooling?
no
Closes#48369 from zhengruifeng/py_connect_col_str.
Lead-authored-by: Ruifeng Zheng <[email protected]>
Co-authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
0 commit comments