-
- Downloads
[SPARK-10903][SPARKR] R - Simplify SQLContext method signatures and use a singleton
Eliminate the need to pass sqlContext to method since it is a singleton - and we don't want to support multiple contexts in a R session. Changes are done in a back compat way with deprecation warning added. Method signature for S3 methods are added in a concise, clean approach such that in the next release the deprecated signature can be taken out easily/cleanly (just delete a few lines per method). Custom method dispatch is implemented to allow for multiple JVM reference types that are all 'jobj' in R and to avoid having to add 30 new exports. Author: felixcheung <felixcheung_m@hotmail.com> Closes #9192 from felixcheung/rsqlcontext.
Showing
- R/pkg/R/DataFrame.R 4 additions, 16 deletionsR/pkg/R/DataFrame.R
- R/pkg/R/SQLContext.R 220 additions, 78 deletionsR/pkg/R/SQLContext.R
- R/pkg/R/jobj.R 5 additions, 0 deletionsR/pkg/R/jobj.R
- R/pkg/inst/tests/testthat/test_context.R 1 addition, 1 deletionR/pkg/inst/tests/testthat/test_context.R
- R/pkg/inst/tests/testthat/test_mllib.R 15 additions, 15 deletionsR/pkg/inst/tests/testthat/test_mllib.R
- R/pkg/inst/tests/testthat/test_sparkSQL.R 205 additions, 187 deletionsR/pkg/inst/tests/testthat/test_sparkSQL.R
Loading
Please register or sign in to comment