Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1647: support negative CqlDuration/duration values #1648

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

tatu-at-datastax
Copy link
Contributor

What this PR does:

Adds support (and tests) for accepting negative CQL duration values, serialization.
This because CqlDuration (and C* duration columns) allow such values... unlike ISO-8601 duration. But we can use minus-prefixed presentation since CQL side handles things ok, even if such values won't be good for ISO-8601 compliant systems.

Which issue(s) this PR fixes:
Fixes #1647

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@tatu-at-datastax tatu-at-datastax changed the title (WIP) Fix #1647: support negative CqlDuration/duration values Fix #1647: support negative CqlDuration/duration values Nov 4, 2024
@tatu-at-datastax tatu-at-datastax marked this pull request as ready for review November 4, 2024 22:24
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner November 4, 2024 22:24
@tatu-at-datastax tatu-at-datastax merged commit bae4c48 into main Nov 5, 2024
3 checks passed
@tatu-at-datastax tatu-at-datastax deleted the tatu/1647-support-neg-duration branch November 5, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support use of negative CQL duration values
2 participants