spark-instrumented-optimizer/R/pkg
Max Gekk b409025641 [SPARK-33281][SQL] Return SQL schema instead of Catalog string from the SchemaOfCsv expression
### What changes were proposed in this pull request?
Return schema in SQL format instead of Catalog string from the SchemaOfCsv expression.

### Why are the changes needed?
To unify output of the `schema_of_json()` and `schema_of_csv()`.

### Does this PR introduce _any_ user-facing change?
Yes, they can but `schema_of_csv()` is usually used in combination with `from_csv()`, so, the format of schema shouldn't be much matter.

Before:
```
> SELECT schema_of_csv('1,abc');
  struct<_c0:int,_c1:string>
```

After:
```
> SELECT schema_of_csv('1,abc');
  STRUCT<`_c0`: INT, `_c1`: STRING>
```

### How was this patch tested?
By existing test suites `CsvFunctionsSuite` and `CsvExpressionsSuite`.

Closes #30180 from MaxGekk/schema_of_csv-sql-schema.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
2020-10-29 21:02:10 +09:00
..
inst [SPARK-32073][R] Drop R < 3.5 support 2020-06-24 11:05:27 +09:00
R [SPARK-33258][R][SQL] Add asc_nulls_* and desc_nulls_* methods to SparkR 2020-10-28 09:46:13 +09:00
src-native [SPARK-6811] Copy SparkR lib in make-distribution.sh 2015-05-23 00:04:01 -07:00
tests [SPARK-33281][SQL] Return SQL schema instead of Catalog string from the SchemaOfCsv expression 2020-10-29 21:02:10 +09:00
vignettes [SPARK-30819][SPARKR][ML] Add FMRegressor wrapper to SparkR 2020-04-09 19:38:11 -05:00
.lintr [SPARK-29936][R] Fix SparkR lint errors and add lint-r GitHub Action 2019-11-17 21:01:01 -08:00
.Rbuildignore [SPARK-20877][SPARKR][FOLLOWUP] clean up after test move 2017-06-11 03:00:44 -07:00
DESCRIPTION [SPARK-32452][R][SQL] Bump up the minimum Arrow version as 1.0.0 in SparkR 2020-07-27 14:21:15 +09:00
NAMESPACE [SPARK-33258][R][SQL] Add asc_nulls_* and desc_nulls_* methods to SparkR 2020-10-28 09:46:13 +09:00