Re: Regarding the field ordering after Select.Flattened transform

2021-01-20 Thread Brian Hulette
f may be convenient in > some use cases if we can just keep the order (roughly) consistent with the > order of the parent fields from the original schema. > > > > *From: *Brian Hulette > *Reply-To: *"user@beam.apache.org" > *Date: *Wednesday, January 20, 2021 at

Re: Regarding the field ordering after Select.Flattened transform

2021-01-20 Thread Tao Li
convenient in some use cases if we can just keep the order (roughly) consistent with the order of the parent fields from the original schema. From: Brian Hulette Reply-To: "user@beam.apache.org" Date: Wednesday, January 20, 2021 at 9:42 AM To: user Subject: Re: Regarding the field orde

Re: Regarding the field ordering after Select.Flattened transform

2021-01-20 Thread Brian Hulette
This does seem like an odd choice, I suspect this was just a matter of convenience of implementation since the javadoc makes no claims about field order. In general schema transforms don't take care to maintain a particular field order and I'd recommend against relying on it. Instead fields should