carloea2 opened a new pull request, #4139:
URL: https://github.com/apache/texera/pull/4139

   ### What changes were proposed in this PR?
   
   * Added support in `parseTimestamp(fieldValue: Any)` for additional 
`java.time` input types:
   
     * `LocalDateTime` → `Timestamp.valueOf(ldt)`
     * `Instant` → `Timestamp.from(inst)`
     * `OffsetDateTime` → `Timestamp.from(odt.toInstant)`
     * `ZonedDateTime` → `Timestamp.from(zdt.toInstant)`
     * `LocalDate` → `Timestamp.valueOf(ld.atStartOfDay())`
   
   ### Any related issues, documentation, discussions?
   
   * N/A.
   
   ### How was this PR tested?
   
   * Added unit tests covering the new `java.time` cases for timestamp parsing:
   
     * Positive cases for `LocalDateTime`, `Instant`, `OffsetDateTime`, 
`ZonedDateTime`, and `LocalDate`
     * Negative case verifying unsupported/invalid inputs throw 
`AttributeTypeException`
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   No


-- 
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