Skip to content

Commit c6a3db2

Browse files
gatorsmileHyukjinKwon
authored andcommitted
[SPARK-24924][SQL][FOLLOW-UP] Add mapping for built-in Avro data source
## What changes were proposed in this pull request? Add one more test case for `com.databricks.spark.avro`. ## How was this patch tested? N/A Author: Xiao Li <[email protected]> Closes apache#21906 from gatorsmile/avro.
1 parent e875209 commit c6a3db2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,13 @@ class AvroSuite extends QueryTest with SharedSQLContext with SQLTestUtils {
394394
assert(results.length === 8)
395395
}
396396

397+
test("old avro data source name works") {
398+
val results =
399+
spark.read.format("com.databricks.spark.avro")
400+
.load(episodesAvro).select("title").collect()
401+
assert(results.length === 8)
402+
}
403+
397404
test("support of various data types") {
398405
// This test uses data from test.avro. You can see the data and the schema of this file in
399406
// test.json and test.avsc

0 commit comments

Comments
 (0)