forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49894][PYTHON][CONNECT] Refine the string representation of co…
…lumn 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 apache#48369 from zhengruifeng/py_connect_col_str. Lead-authored-by: Ruifeng Zheng <ruifengz@apache.org> Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
- Loading branch information
1 parent
d8aca18
commit c6b09c0
Showing
2 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters