https://github.com/apache/spark
Revision 24fe7ccbacd913c19fa40199fd5511aaf55c6bfa authored by hyukjinkwon on 26 October 2017, 11:54:36 UTC, committed by hyukjinkwon on 26 October 2017, 11:55:00 UTC
## What changes were proposed in this pull request?

This PR proposes to revive `stringsAsFactors` option in collect API, which was mistakenly removed in https://github.com/apache/spark/commit/71a138cd0e0a14e8426f97877e3b52a562bbd02c.

Simply, it casts `charactor` to `factor` if it meets the condition, `stringsAsFactors && is.character(vec)` in primitive type conversion.

## How was this patch tested?

Unit test in `R/pkg/tests/fulltests/test_sparkSQL.R`.

Author: hyukjinkwon <gurwls223@gmail.com>

Closes #19551 from HyukjinKwon/SPARK-17902.

(cherry picked from commit a83d8d5adcb4e0061e43105767242ba9770dda96)
Signed-off-by: hyukjinkwon <gurwls223@gmail.com>
1 parent d2dc175
History
Tip revision: 24fe7ccbacd913c19fa40199fd5511aaf55c6bfa authored by hyukjinkwon on 26 October 2017, 11:54:36 UTC
[SPARK-17902][R] Revive stringsAsFactors option for collect() in SparkR
Tip revision: 24fe7cc

README.md

back to top