Skip to content

Commit

Permalink
[SPARK-24924][SQL][FOLLOW-UP] Add mapping for built-in Avro data source
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
gatorsmile authored and HyukjinKwon committed Jul 28, 2018
1 parent e875209 commit c6a3db2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ class AvroSuite extends QueryTest with SharedSQLContext with SQLTestUtils {
assert(results.length === 8)
}

test("old avro data source name works") {
val results =
spark.read.format("com.databricks.spark.avro")
.load(episodesAvro).select("title").collect()
assert(results.length === 8)
}

test("support of various data types") {
// This test uses data from test.avro. You can see the data and the schema of this file in
// test.json and test.avsc
Expand Down

0 comments on commit c6a3db2

Please sign in to comment.