The GitHub Actions job "Build" on texera.git/main has succeeded.
Run started by GitHub user chenlica (triggered by chenlica).

Head commit for run:
acca01d1d4974cba2b978b048f3e2c68782a56a9 / carloea2 <[email protected]>
fix: support more java.time inputs in timestamp parsing (#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

Report URL: https://github.com/apache/texera/actions/runs/20565067798

With regards,
GitHub Actions via GitBox

Reply via email to