GitHub user NathanHowell opened a pull request:

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

    [SPARK-8246] [SQL] Implement get_json_object

    First stab at implementing get_json_object... had some time to kill last 
night and hammered it out. I haven't looked at where this integrates into the 
parser (`FunctionRegistry` maybe?) but it works in manually built up DataFrames.
    
    Tests were copied from Hive, but do not seem to be super comprehensive. 
I've generally replicated Hive's unusual behavior rather than following a 
JSONPath reference, except for one case (as noted in the comments). I don't 
know if there is a way of fully replicating Hive's behavior without a slower 
TreeNode implementation, so I've erred on the side of performance instead.

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

    $ git pull https://github.com/NathanHowell/spark SPARK-8246

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

    https://github.com/apache/spark/pull/7485.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 #7485
    
----
commit 6349bbc54a9b1667d0eb07cf0ff9b46c4084d370
Author: Nathan Howell <[email protected]>
Date:   2015-07-18T01:26:44Z

    [SPARK-8246] [SQL] Implement get_json_object

----


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