apache / beam

Apache Beam is a unified programming model for Batch and Streaming data processing.
https://beam.apache.org/
Apache License 2.0
7.88k stars 4.27k forks source link

Support type inference for logical types in StaticSchemaInference #21567

Open damccorm opened 2 years ago

damccorm commented 2 years ago

Support type inference for logical types in StaticSchemaInference

Imported from Jira BEAM-14458. Original Jira may contain additional context. Reported by: heejong.

sixdouglas commented 8 months ago

Hi @damccorm, Do you know if there is any update on this issue? Any plan to resolve it? I'm struggling to use java.util.LocalDate and java.util.LocalDateTime as members type on POJO annotated with @DefaultSchema(JavaFieldSchema.class). My actual error message is Unable to generate a creator for POJO 'class java.time.LocalDateTime' and I guess it is related since this issue is mentioned on this method: org.apache.beam.sdk.schemas.utils.StaticSchemaInference#fieldFromType(org.apache.beam.sdk.values.TypeDescriptor, org.apache.beam.sdk.schemas.utils.FieldValueTypeSupplier, java.util.Map<java.lang.Class,org.apache.beam.sdk.schemas.Schema>). Thanks for your time and your work.

damccorm commented 8 months ago

As of now, I'm not aware of any updates on this one, sorry