zhengruifeng commented on code in PR #42608:
URL: https://github.com/apache/spark/pull/42608#discussion_r1302385936
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -1623,6 +1624,10 @@ def __getitem__(self, item: Union[int, str, Column,
List, Tuple]) -> Union[Colum
alias = self._get_alias()
if self._plan is None:
raise SparkConnectException("Cannot analyze on empty plan.")
+
+ if "." not in item and "*" not in item and "`" not in item and
item not in self.columns:
Review Comment:
I now hesitate whether this is worthwhile @HyukjinKwon
--
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]