Skip to content

Conversation

@cloud-fan
Copy link
Contributor

Backport 6b1ca88, similar to #28142

What changes were proposed in this pull request?

Write Spark version into Avro file metadata

Why are the changes needed?

The version info is very useful for backward compatibility. This is also done in parquet/orc.

Does this PR introduce any user-facing change?

no

How was this patch tested?

new test

@cloud-fan
Copy link
Contributor Author

cc @dongjoon-hyun @HyukjinKwon

Write Spark version into Avro file metadata

The version info is very useful for backward compatibility. This is also done in parquet/orc.

no

new test

Closes apache#28102 from cloud-fan/avro.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
@dongjoon-hyun
Copy link
Member

Thank you for pinging me, @cloud-fan .

@SparkQA
Copy link

SparkQA commented Apr 8, 2020

Test build #120950 has finished for PR 28150 at commit 562a9db.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • public class SparkAvroKeyOutputFormat extends AvroKeyOutputFormat<GenericRecord>
  • static class SparkRecordWriterFactory extends RecordWriterFactory<GenericRecord>

@SparkQA
Copy link

SparkQA commented Apr 8, 2020

Test build #120951 has finished for PR 28150 at commit 92ca1c7.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • public class SparkAvroKeyOutputFormat extends AvroKeyOutputFormat<GenericRecord>
  • static class SparkRecordWriterFactory extends RecordWriterFactory<GenericRecord>

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Apr 8, 2020

Test build #120956 has finished for PR 28150 at commit 92ca1c7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • public class SparkAvroKeyOutputFormat extends AvroKeyOutputFormat<GenericRecord>
  • static class SparkRecordWriterFactory extends RecordWriterFactory<GenericRecord>

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @cloud-fan and @HyukjinKwon .
Merged to branch-2.4.

dongjoon-hyun pushed a commit that referenced this pull request Apr 8, 2020
Backport 6b1ca88, similar to #28142

### What changes were proposed in this pull request?

Write Spark version into Avro file metadata

### Why are the changes needed?

The version info is very useful for backward compatibility. This is also done in parquet/orc.

### Does this PR introduce any user-facing change?

no

### How was this patch tested?

new test

Closes #28150 from cloud-fan/pick.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants