[jira] [Updated] (AVRO-1265) Python: schema objects should support builder() default-filling behavior
[ https://issues.apache.org/jira/browse/AVRO-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ismaël Mejía updated AVRO-1265: --- Fix Version/s: (was: 1.10.0) > Python: schema objects should support builder() default-filling behavior > > > Key: AVRO-1265 > URL: https://issues.apache.org/jira/browse/AVRO-1265 > Project: Apache Avro > Issue Type: Improvement > Components: python >Reporter: Jeremy Kahn >Assignee: Jeremy Kahn >Priority: Minor > Labels: features > Attachments: avro-1265a-build-defaults.patch, avro-1265b-tests.patch > > > There seems to be no way to easily use the avro libraries in Python (where I > feel most qualified to comment) to encode generics with "missing default > values" and have them transmitted in well-formed avro binary. > If you fill in the "missing" default values, the Python libraries will > transmit correctly. > I'd be happy to add methods to the avro.RecordSchema objects (in the Python > libraries) that "fill defaults" on missing member fields of a record, > recursively (which probably means method extension of other schema classes as > well). > For backwards compatibility (and probably to avoid unnecessary data > traversal), clients probably want to explicitly ask the schema to fill in > defaults before transmission in the cases where you'd like to set only the > non-default values. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (AVRO-1265) Python: schema objects should support builder() default-filling behavior
[ https://issues.apache.org/jira/browse/AVRO-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fokko Driesprong updated AVRO-1265: --- Fix Version/s: (was: 1.9.0) 1.10.0 > Python: schema objects should support builder() default-filling behavior > > > Key: AVRO-1265 > URL: https://issues.apache.org/jira/browse/AVRO-1265 > Project: Apache Avro > Issue Type: Improvement > Components: python >Reporter: Jeremy Kahn >Assignee: Jeremy Kahn >Priority: Minor > Labels: features > Fix For: 1.10.0 > > Attachments: avro-1265a-build-defaults.patch, avro-1265b-tests.patch > > > There seems to be no way to easily use the avro libraries in Python (where I > feel most qualified to comment) to encode generics with "missing default > values" and have them transmitted in well-formed avro binary. > If you fill in the "missing" default values, the Python libraries will > transmit correctly. > I'd be happy to add methods to the avro.RecordSchema objects (in the Python > libraries) that "fill defaults" on missing member fields of a record, > recursively (which probably means method extension of other schema classes as > well). > For backwards compatibility (and probably to avoid unnecessary data > traversal), clients probably want to explicitly ask the schema to fill in > defaults before transmission in the cases where you'd like to set only the > non-default values. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (AVRO-1265) Python: schema objects should support builder() default-filling behavior
[ https://issues.apache.org/jira/browse/AVRO-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Kahn updated AVRO-1265: -- Attachment: avro-1265b-tests.patch avro-1265a-build-defaults.patch Implement default-build behavior on schema and update tests to do (rather cursory) testing of this behavior Python: schema objects should support builder() default-filling behavior Key: AVRO-1265 URL: https://issues.apache.org/jira/browse/AVRO-1265 Project: Avro Issue Type: Improvement Components: python Reporter: Jeremy Kahn Assignee: Jeremy Kahn Priority: Minor Labels: features Fix For: 1.7.5 Attachments: avro-1265a-build-defaults.patch, avro-1265b-tests.patch There seems to be no way to easily use the avro libraries in Python (where I feel most qualified to comment) to encode generics with missing default values and have them transmitted in well-formed avro binary. If you fill in the missing default values, the Python libraries will transmit correctly. I'd be happy to add methods to the avro.RecordSchema objects (in the Python libraries) that fill defaults on missing member fields of a record, recursively (which probably means method extension of other schema classes as well). For backwards compatibility (and probably to avoid unnecessary data traversal), clients probably want to explicitly ask the schema to fill in defaults before transmission in the cases where you'd like to set only the non-default values. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira