Open tatu-at-datastax opened 1 month ago
Q: will decimals, in the 'seconds' part, be OK even if they come not in triplets, rather according to the minimum needed for expressing?
i.e. PT1.4321S
.
@hemidactylus We have no specific implementation plans in place, but assuming ISO-8601 does not mandate triples (which I think we think is the case), yes, that should be allowed.
ISO-8601 does not mandate triples (which I think we think is the case) IIRC it does mandate the subseconds is in triples.
(issue found as part of #1617 / #1619 work)
Codec converting from JSON String input
CqlDuration
works for most cases: it usesCqlDuration.from(String)
which accepts:P
notationbut in case of (2), it does NOT support "Fractional seconds". So whereas
(for "10 seconds") is fine,
PT10.450S
(for "10 seconds, 450 milliseconds"0) fails to be decoded.
This is missing from
CqlDuration.from(...)
implementation (will report).