Skip to content

Conversation

@gengliangwang
Copy link
Member

What changes were proposed in this pull request?

Previously in the refactoring of Avro Serializer and Deserializer, a new class SerializableSchema is created for serializing the Avro schema:
https://github.com/apache/spark/pull/21762/files#diff-01fea32e6ec6bcf6f34d06282e08705aR37

On second thought, we can use toString method for serialization. After that, parse the JSON format schema on executor. This makes the code much simpler.

How was this patch tested?

Unit test

@SparkQA
Copy link

SparkQA commented Jul 20, 2018

Test build #93347 has finished for PR 21829 at commit f376503.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

Choose a reason for hiding this comment

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

the naming is confusing. We have schema, avroJsonSchema and avroSchema. Also add comments about these variables.

@gengliangwang gengliangwang force-pushed the removeSerializableSchema branch from f376503 to bdf2f48 Compare July 20, 2018 17:14
@SparkQA
Copy link

SparkQA commented Jul 20, 2018

Test build #93355 has finished for PR 21829 at commit bdf2f48.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gatorsmile
Copy link
Member

LGTM

Thanks! Merged to master

@asfgit asfgit closed this in 00b864a Jul 20, 2018
otterc pushed a commit to linkedin/spark that referenced this pull request Mar 22, 2023
Previously in the refactoring of Avro Serializer and Deserializer, a new class SerializableSchema is created for serializing the Avro schema:
https://github.com/apache/spark/pull/21762/files#diff-01fea32e6ec6bcf6f34d06282e08705aR37

On second thought, we can use `toString` method for serialization. After that, parse the JSON format schema on executor. This makes the code much simpler.

Unit test

Author: Gengliang Wang <gengliang.wang@databricks.com>

Closes apache#21829 from gengliangwang/removeSerializableSchema.

(cherry picked from commit 00b864a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants