sachinnn99 opened a new pull request, #38194:
URL: https://github.com/apache/beam/pull/38194

   ## Summary
   - `StaticSchemaInference.fieldFromType()` now maps `java.time.LocalDate`, 
`LocalTime`, `LocalDateTime`, `java.time.Instant`, and `UUID` to their 
corresponding Beam logical types (`SqlTypes.DATE`, `TIME`, `DATETIME`, 
`NanosInstant`, `SqlTypes.UUID`)
   - `ByteBuddyUtils` gains `convertJavaTimeLogicalType()` in both getter and 
setter codegen paths, calling `LogicalType.toBaseType()` / `toInputType()` so 
POJO/Bean ↔ Row round-trips work correctly
   - Comprehensive tests covering schema inference, toRow, fromRow, round-trip, 
nullable fields, mixed schemas, and backward compatibility with Joda 
`ReadableInstant`
   
   Fixes #37524
   
   ## Test plan
   - [x] `POJOUtilsTest` — schema inference for JSR-310 types + Joda regression 
test
   - [x] `JavaFieldSchemaTest` — schema, toRow, fromRow, round-trip, nullable 
toRow/fromRow
   - [x] `JavaBeanSchemaTest` — schema + round-trip
   - [x] `JavaBeanUtilsTest` — schema inference for beans
   - [x] `ConvertTest` — `Convert.fromRows()` with logical-type DateTime 
(reproducer for #37524) + mixed logical/primitive schema
   
   R: @ahmedabu98


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to