Skip to content

Commit

Permalink
Add tests for each case
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Apr 28, 2017
1 parent 257e625 commit e9d672a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions R/pkg/inst/tests/testthat/test_sparkSQL.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ test_that("structField type strings", {
binary = "BinaryType",
boolean = "BooleanType",
timestamp = "TimestampType",
date = "DateType")
date = "DateType",
tinyint = "ByteType",
smallint = "ShortType",
int = "IntegerType",
bigint = "LongType",
decimal = "DecimalType(10,0)")

complexTypes <- list("map<string,integer>" = "MapType(StringType,IntegerType,true)",
"array<string>" = "ArrayType(StringType,true)",
Expand All @@ -174,7 +179,11 @@ test_that("structField type strings", {
numeric = "numeric",
character = "character",
raw = "raw",
logical = "logical")
logical = "logical",
short = "short",
varchar = "varchar",
long = "long",
char = "char")

complexErrors <- list("map<string, integer>" = " integer",
"array<String>" = "String",
Expand Down

0 comments on commit e9d672a

Please sign in to comment.