Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7.2
-
None
-
None
Description
Record R is written using schema S1:
S1
record Record {
int i = 0;
}
I read R using a my own reader schema S2:
S2
record Record { string s = ""; }
Rewriting R using S2 will discard fields from S1 that are unknown in S2 (that is Record.i is lost).
Ideally, there would be a way to maintain fields from S1 that are invisible through S2.
Writing R back without such loss implies merging S1 and S2 into a single schema that contains all fields from S1 and all fields from S2:
Merged(S1,S2)
record Record {
int i = 0;
string s = "";
}