GitHub user rdblue opened a pull request:

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

    SPARK-18677: Fix parsing ['key'] in JSON path expressions.

    ## What changes were proposed in this pull request?
    
    This fixes the parser rule to match named expressions, which doesn't work 
for two reasons:
    1. The name match is not coerced to a regular expression (missing .r)
    2. The surrounding literals are incorrect and attempt to escape a single 
quote, which is unnecessary
    
    ## How was this patch tested?
    
    This adds test cases for named expressions using the bracket syntax, 
including one with quoted spaces.


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

    $ git pull https://github.com/rdblue/spark SPARK-18677-fix-json-path

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

    https://github.com/apache/spark/pull/16107.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 #16107
    
----
commit 1c0cc097c5ee6f35da6fab732d7e7408d6306d1e
Author: Ryan Blue <b...@apache.org>
Date:   2016-12-01T20:24:58Z

    SPARK-18677: Fix parsing ['key'] in JSON path expressions.

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to