GitHub user davies opened a pull request:

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

    [SPARK-8246] [SQL] Implement get_json_object

    This is based on #7485 , thanks to @NathanHowell 
    
    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/davies/spark get_json_object

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

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

    [SPARK-8246] [SQL] Implement get_json_object

commit 9192d097c18feebc7896aca56d81409e22d57355
Author: Nathan Howell <[email protected]>
Date:   2015-07-24T02:14:43Z

    Match Hive’s behavior for unwrapping arrays of one element

commit 44084c5bb2f23fa1cadf62b17e0f3d8042f8d925
Author: Davies Liu <[email protected]>
Date:   2015-08-03T18:40:49Z

    Merge branch 'master' of github.com:apache/spark into get_json_object
    
    Conflicts:
        
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala

commit 940c06029e199640cd508d0743e2c29eebf0d9b1
Author: Davies Liu <[email protected]>
Date:   2015-08-03T19:15:17Z

    tweat code style

----


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