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 timestamp subtraction #66

Open
gadomski opened this issue Feb 18, 2025 · 0 comments
Open

Fix timestamp subtraction #66

gadomski opened this issue Feb 18, 2025 · 0 comments
Assignees

Comments

@gadomski
Copy link
Collaborator

I'm pretty sure this will panic because you can't add calendar units (days or greater) to a Timestamp. It looks like you probably are looking to add 86400s - 1ns right? If so, I'd suggest:

start + jiff::SignedDuration::new(86_400, -1)

Originally posted by @BurntSushi in 3e980e3

@gadomski gadomski self-assigned this Feb 18, 2025
gadomski referenced this issue Feb 18, 2025
Add ability to reduce constant expressions using json and to evaluate whether a json item matches a CQL2 Query.

---------

Co-authored-by: Pete Gadomski <[email protected]>
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

No branches or pull requests

1 participant