Skip to content

Fix timestamp fractional precision in ion_equals - #459

Open
vera-rubin wants to merge 1 commit into
amazon-ion:masterfrom
vera-rubin:fix/timestamp-fractional-precision
Open

vera-rubin wants to merge 1 commit into
amazon-ion:masterfrom
vera-rubin:fix/timestamp-fractional-precision

Conversation

@vera-rubin

Copy link
Copy Markdown

Issue #, if available:

Fixes #458

Description of changes:

We treated timestamps with six and seven fractional digits as equivalent. We now use the existing decimal comparison to preserve fractional precision. We tested the regression, equivalence tests and full suite excluding benchmarks, and checked the reproducer with both readers.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

— ChipLab

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.

ion_equals ignores timestamp fractional precision above six digits

1 participant