Open tatu-at-datastax opened 1 week ago
(issue found as part of #1617 / #1619 work)
Codec converting from JSON String input CqlDuration works for most cases: it uses CqlDuration.from(String) which accepts:
CqlDuration
CqlDuration.from(String)
P
but in case of (2), it does NOT support "Fractional seconds". So whereas
PT10S
(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).
CqlDuration.from(...)
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.
PT1.4321S
(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).