gengliangwang commented on a change in pull request #24635: [SPARK-27762][SQL]
Support user provided avro schema for writing fields with different ordering
URL: https://github.com/apache/spark/pull/24635#discussion_r285326824
##########
File path:
external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala
##########
@@ -692,7 +692,7 @@ class AvroSuite extends QueryTest with SharedSQLContext
with SQLTestUtils {
| "type" : "record",
| "name" : "test_schema",
| "fields" : [{
- | "name": "enum",
+ | "name": "Suit",
Review comment:
In the original test case, the avro schema is `enum: union`, while the
catalyst schema is `StructType(Seq(StructField("Suit", StringType, true)))`.
Thus the field names can't match with each other.
We should fix such case.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]