GitHub user ksonj opened a pull request:

    https://github.com/apache/spark/pull/5771

    Better error message on access to non-existing attribute

    I believe column access via `__getattr__` is bad and shouldn't be 
implicitly encouraged by the error message when accessing a non-existing 
attribute on DataFrame. This patch changes the error message from 'no such 
column'  to the more generic 'no such attribute', which is also what Pandas DFs 
will throw.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ksonj/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5771.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5771
    
----
commit bcc222084c2fefcb9482cf52d6bb50078ef34377
Author: ksonj <[email protected]>
Date:   2015-04-29T07:17:36Z

    Better error message on access to non-existing attribute

----


---
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