[ 
https://issues.apache.org/jira/browse/FLINK-40491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-40491:
-----------------------------------
    Labels: pull-request-available  (was: )

> Extend BinaryVariant with primitive codes 17-19
> -----------------------------------------------
>
>                 Key: FLINK-40491
>                 URL: https://issues.apache.org/jira/browse/FLINK-40491
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / API
>            Reporter: Ramin Gharib
>            Assignee: Moritz Manner
>            Priority: Major
>              Labels: pull-request-available
>
> Add read, write, and JSON rendering for the four new variant primitives in the
> BinaryVariant core.
> Scope:
>  - Variant.Type: TIME, TIMESTAMP_NS, TIMESTAMP_LTZ_NS
>  - BinaryVariantUtil.getType()/valueSize()/header writers for codes 17-19
>  - accessors getTime() -> LocalTime, reuse
>   getTimestamp()/getInstant() for the nanosecond timestamps
>  - VariantBuilder.of(LocalTime), and precision-aware
>   of(Instant)/of(LocalDateTime): codes 18/19 for sub-microsecond, 12/13 
> otherwise
>  - toJson rendering: TIME ISO, ns timestamps ISO with nanos
> Mirrors FLINK-37923, which bundled the BinaryVariant encode/decode/toJson 
> core.
> Verifying: round-trip encode/decode per code including Spark/Iceberg-produced
> bytes, JSON rendering, and the precision-selection boundary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to