You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clientModule: the client (client-v2; with legacy: the v1 client)data-typesArea: type names, value encoding and decoding, row mapping, data formatsenhancement
Just wanted a quick check on how flexible we want this "simple logic" to be so I don't build it wrong:
Epoch Numbers: For a numeric string like "1710000000", should we assume it's always seconds or milliseconds? Or check string length (10 digits vs 13 digits) to guess?
Formats: For formatted strings, do we want to stick to standard ISO-8601 out of the box, or do you have a specific list of fallback formats we should try parsing against?
Let me know what you prefer here and I'll jump on the PR!
we should never guess about data. It creates a lot error in our and application code. Application has better knowledge about it.
this is the main question. using fallback formats may cause parsing data wrongly (like with dates where month and day are on different positions). We could stick to DB default format But then others will need to convert string to proper format anyway.
Before proceeding we need to learn more usecases - when is it needed, is it a real problem of only few care about it. Because any convenience has cost - we still have to maintain feature and if it become too bulky it will be hard to remove it.
Recommendation: Keep open — maintainer decision
The author asked for more use cases before a design (2026-10-01). The decision: whether client-v2 converts a String to DateTime and DateTime64 at all, and which text forms it accepts.
Analysis:SerializerUtils.writeDateTime and writeDateTime64 accept only LocalDateTime, ZonedDateTime, Timestamp, OffsetDateTime, and Instant, and throw IllegalArgumentException for any other value (SerializerUtils.java:1610, SerializerUtils.java:1646). 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.
clientModule: the client (client-v2; with legacy: the v1 client)data-typesArea: type names, value encoding and decoding, row mapping, data formatsenhancement
Activity
shubhamagore commentedon Oct 1, 2026
Hey @chernser , I can pick this up and implement
Just wanted a quick check on how flexible we want this "simple logic" to be so I don't build it wrong:
Let me know what you prefer here and I'll jump on the PR!
chernser commentedon Oct 1, 2026
Good day, @shubhamagore !
Before proceeding we need to learn more usecases - when is it needed, is it a real problem of only few care about it. Because any convenience has cost - we still have to maintain feature and if it become too bulky it will be hard to remove it.
polyglotAI-bot commentedon Nov 27, 2026
Recommendation: Keep open — maintainer decision
The author asked for more use cases before a design (2026-10-01). The decision: whether client-v2 converts a
StringtoDateTimeandDateTime64at all, and which text forms it accepts.main: Not supported on main — the client-v2 writers reject aStringvalue for both types (code read on8480ca001).Stringvalue fails today.Date; [Data-Types] Date/Time Values #3323 — open issue for date and time values.Analysis:
SerializerUtils.writeDateTimeandwriteDateTime64accept onlyLocalDateTime,ZonedDateTime,Timestamp,OffsetDateTime, andInstant, and throwIllegalArgumentExceptionfor any other value (SerializerUtils.java:1610,SerializerUtils.java:1646). The POJO insert (POJOSerDe.java:66) andRowBinaryFormatWriter(RowBinaryFormatWriter.java:98) write through them.Automated triage by Polyglot AI. A maintainer makes the final decision.