Skip to content

[client-v2] Convert String to Date #3164

Open

Description

@chernser

Description

Original issue: #3132

Define a simple and straightforward logic of converting String to Date. Consider next usecases:

  • String represents a number of days. Should it be assumption of user should convert data explicitly
  • String represent formatted Date however how would we know what format it is. Especially when month and day

Activity

  1. added this to the 0.12.0 milestone on Sep 29, 2026
  2. added
    client
    on Sep 29, 2026
  3. added theissue type on Sep 29, 2026
  4. added
    data-types
    on Sep 29, 2026
  5. removed this from the 0.12.0 milestone on Nov 11, 2026
  6. polyglotAI-bot commented on Nov 27, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — maintainer decision
    The decision: whether client-v2 converts a String to Date and Date32 at all, and which text forms it accepts. In the twin issue #3165, the author asked for more use cases before a design (2026-10-01).

    Analysis: SerializerUtils.writeDate accepts only LocalDate, ZonedDateTime, and OffsetDateTime, and writeDate32 only LocalDate and ZonedDateTime. Both throw IllegalArgumentException: Cannot convert <value> to Long for any other value (SerializerUtils.java:1568, SerializerUtils.java:1582). The POJO insert (POJOSerDe.java:66) and RowBinaryFormatWriter (RowBinaryFormatWriter.java:98) write through them.

    Automated triage by Polyglot AI. A maintainer makes the final decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientdata-typesenhancement

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions