Re: Modifying a field's schema property in Java

2022-11-23 Thread Ryan Skraba
Thanks Oscar! Julien (or anyone else) -- do you think it would be useful to have a category of "Schema" objects that are mutable for the Java SDK? Something like: MutableSchema ms = originalSchema.unlock(); ms.getField("quantity").setProperty("precision", 5);

Re: Modifying a field's schema property in Java

2022-11-12 Thread Oscar Westra van Holthe - Kind
On sun 13 nov. 2022 05:34, Julien Phalip wrote: > I've got a schema with multiple levels of depths (sub-records) that I > would need to change slightly. [...] > > Is there a way to make this type of modification on an existing schema, or > do you have to recreate the entire schema from scratch?

Modifying a field's schema property in Java

2022-11-12 Thread Julien Phalip
Hi, I've got a schema with multiple levels of depths (sub-records) that I would need to change slightly. In particular, I need to change the "precision" and "scale" properties on a decimal field. My problem is that apparently in Java a field's properties are immutable. If you call the "add