zhengruifeng commented on code in PR #42672:
URL: https://github.com/apache/spark/pull/42672#discussion_r1305175390
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -1604,7 +1607,11 @@ def __getattr__(self, name: str) -> "Column":
"'%s' object has no attribute '%s'" %
(self.__class__.__name__, name)
)
- return self[name]
+ alias = self._get_alias()
Review Comment:
it seems a bit weird but I just copy this logic from `__getitem__` for now
--
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]