GitHub user aa8y opened a pull request:
https://github.com/apache/spark/pull/9943
[SPARK-11962] Added getAsOpt[T]() methods to enable getting values
optionally.
Adds methods to get values from a row object optionally. I personally have
an implicit class which does this and which I use a lot. I think this feature
would be immensely beneficial for everyone. Please let me know if these need
changes.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aa8y/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9943.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 #9943
----
commit 114bc390d8342a4814129d622dc61190485a65de
Author: Arun Allamsetty <[email protected]>
Date: 2015-11-24T16:43:35Z
Added optional getAs[T]() methods.
----
---
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]