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

Reflect default values for case class constructors #98

Merged
merged 6 commits into from
Apr 22, 2024

Conversation

novakov-alexey
Copy link
Collaborator

@novakov-alexey novakov-alexey commented Mar 3, 2024

Derive/reflect default values for case classes, when an object instance from a checkpoint/savepoint does not have enough constructor args.

This solves case class evolution problem.

novakov-alexey and others added 4 commits March 3, 2024 17:53
…o case-class-schema-evolution

# Conflicts:
#	src/main/scala-2/org/apache/flinkx/api/serializer/ConstructorCompat.scala
#	src/test/scala/org/apache/flinkx/api/SchemaEvolutionTest.scala
@AlexLi-Monster
Copy link

Hi,

I have double checked, fix looks good.
Thanks for taking care of this bug.

Cheers.

@novakov-alexey novakov-alexey force-pushed the case-class-schema-evolution branch from 14e0b9d to 72c638a Compare April 15, 2024 18:05
@novakov-alexey novakov-alexey changed the title WIP: reflect default values for Scala 2 case class constructors Reflect default values for case class constructors Apr 22, 2024
@novakov-alexey novakov-alexey merged commit 393e93b into master Apr 22, 2024
7 checks passed
@novakov-alexey novakov-alexey deleted the case-class-schema-evolution branch April 22, 2024 07:04
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.

2 participants