HyukjinKwon commented on code in PR #41674:
URL: https://github.com/apache/spark/pull/41674#discussion_r1236115716
##########
python/pyspark/sql/connect/group.py:
##########
@@ -83,6 +83,26 @@ def __init__(
self._pivot_col = pivot_col
self._pivot_values = pivot_values
+ def __repr__(self) -> str:
+ # since the expressions are not resolved here,
+ # the string represent can be different from vanilla PySpark.
+ grouping_str = ", ".join(str(e._expr) for e in self._grouping_cols)
+ grouping_str = f"grouping expressions: [{grouping_str}]"
+
+ value_str = str(self._df)
+ value_str = value_str[9:]
Review Comment:
and this 9?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]