Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8202#discussion_r37110099
  
    --- Diff: python/pyspark/sql/dataframe.py ---
    @@ -722,8 +722,6 @@ def __getitem__(self, item):
             [Row(age=5, name=u'Bob')]
             """
             if isinstance(item, basestring):
    -            if item not in self.columns:
    --- End diff --
    
    or maybe, instead of doing any checks here, is it possible to catch 
specific errors here thrown by the analyzer and just reformat them nicely?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to