Skip to content
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

#131 Backport of jackson serialization support (RunStatus enum) #132

Merged

Conversation

dk1844
Copy link
Collaborator

@dk1844 dk1844 commented May 20, 2022

Backport of Jackson serialization support (RunStatus enum) (cherry-picked from PR #84)

  • unit test cases for this have been added

As for the potential backwards compatibility issue: RunStatus serialization with Jackson was actually never used, Json4s serialization was always used instead. (SerializationUtils.asJson)

Closes #131

…field of RunState enum) (CP'd from PR #84)

- unit test cases for this has been added
@dk1844 dk1844 requested review from Zejnilovic, AdrianOlosutean and benedeki and removed request for AdrianOlosutean, benedeki and Zejnilovic May 20, 2022 12:55
benedeki
benedeki previously approved these changes May 26, 2022
Copy link
Collaborator

@benedeki benedeki left a comment

Choose a reason for hiding this comment

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

  • code reviewed
  • pulled
  • built
  • run

@@ -154,6 +155,16 @@
<artifactId>spark-core_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
<exclusions>
Copy link
Collaborator

Choose a reason for hiding this comment

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

These exclusions are missing from sbt. Is that OK?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for noticing. I have added the same excludes to sbt version as well.

case class RunStatus
(
@JsonScalaEnumeration(classOf[RunStateType])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note: The whole class feels little utilitarian for Enceladus' purposes. But no point of removing it now..

Copy link
Collaborator

Choose a reason for hiding this comment

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

No such class in the next major version 👍

@dk1844 dk1844 dismissed stale reviews from benedeki and AdrianOlosutean via d5ce632 May 26, 2022 12:19
@dk1844 dk1844 merged commit ec84511 into master May 26, 2022
@dk1844 dk1844 deleted the feature/131-run-state-enum-serialization-backport-to-v3 branch May 26, 2022 12:55
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.

Backport: RunState enums serialization differs between json4s and jackson.databind for V3.x
4 participants