diff options
author | Davies Liu <davies@databricks.com> | 2015-10-21 13:38:30 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-10-21 13:38:30 -0700 |
commit | f8c6bec65784de89b47e96a367d3f9790c1b3115 (patch) | |
tree | 29ebe356ff5dddfabf67bc0bca0b9fc7120e6d0b /R/pkg | |
parent | 7c74ebca05f40a2d8fe8f10f24a10486ce4f76c0 (diff) | |
download | spark-f8c6bec65784de89b47e96a367d3f9790c1b3115.tar.gz spark-f8c6bec65784de89b47e96a367d3f9790c1b3115.tar.bz2 spark-f8c6bec65784de89b47e96a367d3f9790c1b3115.zip |
[SPARK-11197][SQL] run SQL on files directly
This PR introduce a new feature to run SQL directly on files without create a table, for example:
```
select id from json.`path/to/json/files` as j
```
Author: Davies Liu <davies@databricks.com>
Closes #9173 from davies/source.
Diffstat (limited to 'R/pkg')
-rw-r--r-- | R/pkg/inst/tests/test_sparkSQL.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/test_sparkSQL.R b/R/pkg/inst/tests/test_sparkSQL.R index e1b42b0804..67d8b23cd7 100644 --- a/R/pkg/inst/tests/test_sparkSQL.R +++ b/R/pkg/inst/tests/test_sparkSQL.R @@ -1428,7 +1428,7 @@ test_that("sampleBy() on a DataFrame", { test_that("SQL error message is returned from JVM", { retError <- tryCatch(sql(sqlContext, "select * from blah"), error = function(e) e) - expect_equal(grepl("Table Not Found: blah", retError), TRUE) + expect_equal(grepl("Table not found: blah", retError), TRUE) }) test_that("Method as.data.frame as a synonym for collect()", { |