@@ -2659,7 +2659,7 @@ test_that("Call DataFrameWriter.save() API in Java without path and check argume
26592659 # It makes sure that we can omit path argument in write.df API and then it calls
26602660 # DataFrameWriter.save() without path.
26612661 expect_error(write.df(df , source = " csv" ),
2662- " Error in save : illegal argument - Expected exactly one path to be specified" )
2662+ " Error in save : illegal argument - ' path' is not specified" )
26632663 expect_error(write.json(df , jsonPath ),
26642664 " Error in json : analysis error - path file:.*already exists" )
26652665 expect_error(write.text(df , jsonPath ),
@@ -2684,8 +2684,7 @@ test_that("Call DataFrameWriter.load() API in Java without path and check argume
26842684 # It makes sure that we can omit path argument in read.df API and then it calls
26852685 # DataFrameWriter.load() without path.
26862686 expect_error(read.df(source = " json" ),
2687- paste(" Error in loadDF : analysis error - Unable to infer schema for JSON at ." ,
2688- " It must be specified manually" ))
2687+ paste(" Error in loadDF : illegal argument - 'path' is not specified" ))
26892688 expect_error(read.df(" arbitrary_path" ), " Error in loadDF : analysis error - Path does not exist" )
26902689 expect_error(read.json(" arbitrary_path" ), " Error in json : analysis error - Path does not exist" )
26912690 expect_error(read.text(" arbitrary_path" ), " Error in text : analysis error - Path does not exist" )
0 commit comments