-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19409][BUILD][test-maven] Fix ParquetAvroCompatibilitySuite failure due to test dependency on avro #16795
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
Changes from 1 commit
2cc8653
499f6fd
42ff642
941bf00
47e9033
b9e336f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,6 +129,12 @@ | |
| <artifactId>parquet-avro</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.avro</groupId> | ||
| <artifactId>avro</artifactId> | ||
| <version>1.8.0</version> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two questions still -- should this not just use the same version of Avro as the rest of the project? Second, is this really just a test issue? Therefore, I wonder if it is best to simply remove the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for review again.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For 1, I'll create another PR since maven build seems to be unstable for me. It fails due to timeout frequently during this PR. |
||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
|
|
||
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.
Ah sorry I missed this, yes we should get this in ASAP.
Is this the only module that would need this updated dependency? we could declare this in the parent's
dependencyManagementsection intestscope.Does the "1.8.0" need to sync with a Parquet or other Avro versions -- is there or should there be a property tying them together?
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.
Is this issue only a test dependency? I see avro.version declared in the top level pom.xml
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 review, @srowen and @robbinspg .
avro.versionis synced with Hadoop avro version. Here,apache.parquet.avro.AvroParquetWriterin the testcode only requires that.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.
I moved it into parent pom and am testing now.
Uh oh!
There was an error while loading. Please reload this 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.
@srowen .
Maven rejects the newly added test dependency, so I reverted the commit about moving into parent pom. To use different versions of
avro, it seems we should keep this here.