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

[controller] Superset schema generation should reflect default value updates in new value schema #1184

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sixpluszero
Copy link
Contributor

[controller] Superset schema generation should reflect default value updates in new value schema

When user updates a field default value, we should reflect it in the changes in superset schema, which is used in read-compute / partial update store. This should apply to all the value type, including union schema.

How was this PR tested?

Add a new integration test to validate

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@sixpluszero sixpluszero marked this pull request as draft September 18, 2024 00:09
@sixpluszero sixpluszero marked this pull request as ready for review September 18, 2024 16:47
* @return super-set schema of existingSchema abd newSchema
*/
public static Schema generateSuperSetSchema(Schema existingSchema, Schema newSchema) {
if (existingSchema.getType() != newSchema.getType()) {
public static Schema generateSuperSetSchema(Schema newSchema, Schema oldSchema) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel not changing the function definition should make the diff a bit concise. what do you think?

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