-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-39927][BUILD] Upgrade to Avro 1.11.1 #37352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Seems like the test failure looks related: |
|
Is this an official release? The documentation links you updated (such as this one) give a 404 error and I don't see Avro 1.11.1 listed on the Avro Releases page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Thank you for making a PR, @iemejia .
- Unfortunately, as mentioned by Hyukjin, for the failures, it looks like that.
- It seems that Avro error message is changed. Could you adjust the error message assertion part in Spark test case according to Avro change, please, @iemejia ?
- To @xkrogen . Yes, right, but @iemejia published it. Usually, it takes some time to sync.
|
Can one of the admins verify this patch? |
|
Gentle ping, @iemejia . |
Also, we work on replacing the Avro website with a new one. Probably it will be done later this week! |
6da9901 to
e919d1b
Compare
|
seems |
|
Yes, it does. @LuciferYang . To @iemejia , as I mentioned here, please take a look at the test case. Otherwise, Avro 1.11.1 cannot pass the CIs. |
e919d1b to
48ba166
Compare
48ba166 to
5b8783a
Compare
| .option("avroSchema", avroSchema).save(s"$tempDir/${UUID.randomUUID()}") | ||
| } | ||
| assertExceptionMsg[AvroTypeException](e1, "Not an enum: null") | ||
| assertExceptionMsg[AvroTypeException](e1, "value null is not a SuitEnumType") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix.
| assert(message.contains("Caused by: java.lang.NullPointerException: ")) | ||
| assert(message.contains( | ||
| "null of string in string in field Name of test_schema in test_schema")) | ||
| assert(message.contains("null in string in field Name")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. I verified Avro module.
$ build/sbt "avro/test"
...
[info] Test run org.apache.spark.sql.avro.JavaAvroFunctionsSuite started
[info] Test org.apache.spark.sql.avro.JavaAvroFunctionsSuite.testToAvroFromAvro started
[info] Test run org.apache.spark.sql.avro.JavaAvroFunctionsSuite finished: 0 failed, 0 ignored, 1 total, 0.633s
[info] ScalaTest
[info] Run completed in 2 minutes, 42 seconds.
[info] Total number of tests run: 288
[info] Suites: completed 13, aborted 0
[info] Tests: succeeded 288, failed 0, canceled 0, ignored 2, pending 0
[info] All tests passed.
[info] Passed: Total 289, Failed 0, Errors 0, Passed 289, Ignored 2
[success] Total time: 530 s (08:50), completed Aug 11, 2022 3:04:35 PM
|
Merged to master for Apache Spark 3.4.0. |
|
Thank you, @iemejia , @HyukjinKwon , @xkrogen , @martin-g , @LuciferYang . |
|
Thanks as usual @dongjoon-hyun ! |
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
…herrypick ### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
### What changes were proposed in this pull request? Update the Avro version to 1.11.1 ### Why are the changes needed? To stay up to date with upstream ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests Closes apache#37352 from iemejia/SPARK-39927-avro-1.11.1. Authored-by: Ismaël Mejía <iemejia@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> # Conflicts: # dev/deps/spark-deps-hadoop-2.7-hive-2.3 # dev/deps/spark-deps-hadoop-3-hive-2.3 # docs/sql-data-sources-avro.md # external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOptions.scala # external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala # pom.xml # project/SparkBuild.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala Co-authored-by: Ismaël Mejía <iemejia@gmail.com>
What changes were proposed in this pull request?
Update the Avro version to 1.11.1
Why are the changes needed?
To stay up to date with upstream
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit tests