Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gengliangwang committed Feb 14, 2019
1 parent 5b7b258 commit 5f3ec83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
val e = intercept[AnalysisException] {
df.write.json(f.getCanonicalPath)
}
e.message.contains("JSON data source does not support calendarinterval data type.")
e.message.contains("Cannot save interval data type into external storage")
})

val e1 = intercept[AnalysisException] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class HiveOrcSourceSuite extends OrcSuite with TestHiveSingleton {
var msg = intercept[AnalysisException] {
sql("select interval 1 days").write.mode("overwrite").orc(orcDir)
}.getMessage
assert(msg.contains("ORC data source does not support calendarinterval data type."))
assert(msg.contains("Cannot save interval data type into external storage."))

msg = intercept[AnalysisException] {
sql("select null").write.mode("overwrite").orc(orcDir)
Expand Down

0 comments on commit 5f3ec83

Please sign in to comment.