-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[controller] Superset schema generation should reflect default value …
…updates in new value schema (#1184) 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.
- Loading branch information
1 parent
c772dd3
commit 04aeaeb
Showing
15 changed files
with
232 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
internal/venice-client-common/src/test/resources/UnionV1.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "User", | ||
"namespace" : "example.avro", | ||
"fields" : [ | ||
{ | ||
"name": "field", | ||
"type": [ | ||
"int", | ||
{ | ||
"type": "record", | ||
"name": "subField", | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"doc": "doc v1", | ||
"default": "v1" | ||
} | ||
] | ||
} | ||
], | ||
"default": 10 | ||
}, | ||
{ | ||
"name": "age", | ||
"type": "int", | ||
"default": 10 | ||
} | ||
] | ||
} |
26 changes: 26 additions & 0 deletions
26
internal/venice-client-common/src/test/resources/UnionV2.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "User", | ||
"namespace" : "example.avro", | ||
"fields" : [ | ||
{ | ||
"name": "field", | ||
"type": [ | ||
"int", | ||
{ | ||
"type": "record", | ||
"name": "subField", | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"doc": "doc v2", | ||
"default": "v2" | ||
} | ||
] | ||
} | ||
], | ||
"default": 20 | ||
} | ||
] | ||
} |
Oops, something went wrong.