So, need to investigate how handling works, if users insert negative duration values via CQL (or Data API using C* duration syntax), what should we do on output path?
Throw an exception for invalid value (Codec failing)?
Looks like CqlDuration accepts leading - for its own "compact"/"standard" format AND ISO-8601 (non-standard but whatever), so it may be quite simple to support such values.
Apparently (see f.ex https://docs.datastax.com/en/drivers/java/4.4/com/datastax/oss/driver/api/core/data/CqlDuration.html) CQL
CqlDuration
values can be negative. This is not something ISO-8601 supports it seems (https://en.wikipedia.org/wiki/ISO_8601#Durations).So, need to investigate how handling works, if users insert negative duration values via CQL (or Data API using C* duration syntax), what should we do on output path?
or something else?