Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class HiveSerDeReadWriteSuite extends QueryTest with SQLTestUtils with TestHiveS
}
}

Seq("PARQUET", "ORC").foreach { fileFormat =>
Seq("PARQUET", "ORC", "TEXTFILE").foreach { fileFormat =>
test(s"Read/Write Hive $fileFormat serde table") {
// Numeric Types
checkNumericTypes(fileFormat, "TINYINT", 2)
Expand Down Expand Up @@ -184,12 +184,4 @@ class HiveSerDeReadWriteSuite extends QueryTest with SQLTestUtils with TestHiveS
checkComplexTypes(fileFormat)
}
}

test("SPARK-32594: insert dates to a Hive table") {
withTable("table1") {
sql("CREATE TABLE table1 (d date)")
sql("INSERT INTO table1 VALUES (date '2020-08-11')")
checkAnswer(spark.table("table1"), Row(Date.valueOf("2020-08-11")))
}
}
}