spark-instrumented-optimizer/sql/catalyst
Ryan Blue 48778976e0 [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.

Author: Ryan Blue <blue@apache.org>

Closes #16107 from rdblue/SPARK-18677-fix-json-path.
2016-12-02 08:41:40 -08:00
..
src [SPARK-18677] Fix parsing ['key'] in JSON path expressions. 2016-12-02 08:41:40 -08:00
pom.xml [SPARK-18429][SQL] implement a new Aggregate for CountMinSketch 2016-11-29 13:16:46 -08:00