spark-instrumented-optimizer/R/pkg
Maxim Gekk d749d034a8 [SPARK-25252][SQL] Support arrays of any types by to_json
## What changes were proposed in this pull request?

In the PR, I propose to extended `to_json` and support any types as element types of input arrays. It should allow converting arrays of primitive types and arrays of arrays. For example:

```
select to_json(array('1','2','3'))
> ["1","2","3"]
select to_json(array(array(1,2,3),array(4)))
> [[1,2,3],[4]]
```

## How was this patch tested?

Added a couple sql tests for arrays of primitive type and of arrays. Also I added round trip test `from_json` -> `to_json`.

Closes #22226 from MaxGekk/to_json-array.

Authored-by: Maxim Gekk <maxim.gekk@databricks.com>
Signed-off-by: hyukjinkwon <gurwls223@apache.org>
2018-09-06 12:35:59 +08:00
..
inst Fix typos detected by github.com/client9/misspell 2018-08-11 21:23:36 -05:00
R [SPARK-25252][SQL] Support arrays of any types by to_json 2018-09-06 12:35:59 +08:00
src-native [SPARK-6811] Copy SparkR lib in make-distribution.sh 2015-05-23 00:04:01 -07:00
tests [SPARK-25252][SQL] Support arrays of any types by to_json 2018-09-06 12:35:59 +08:00
vignettes [SPARK-23042][ML] Use OneHotEncoderModel to encode labels in MultilayerPerceptronClassifier 2018-08-17 18:40:29 +00:00
.lintr [SPARK-22063][R] Fixes lint check failures in R by latest commit sha1 ID of lint-r 2017-10-01 18:42:45 +09:00
.Rbuildignore [SPARK-20877][SPARKR][FOLLOWUP] clean up after test move 2017-06-11 03:00:44 -07:00
DESCRIPTION [SPARKR] Require Java 8 for SparkR 2018-05-11 17:00:51 -07:00
NAMESPACE [SPARK-25007][R] Add array_intersect/array_except/array_union/shuffle to SparkR 2018-09-02 00:06:19 -07:00