You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
The expected result is:
1701833040235520606 - 1701833040235501418 = 19188
I noticed that the actual result that we get matches up with:
1701833040235520600 - 1701833040235501400 = 19200
So the timestamps are truncated to the hundredths.
Environment (please complete the following information):
macOS (Ventura 13.6.2)
jq version 1.7.1
Additional context
I know that jq version 1.7 had a fix to display long numbers correctly. Before version 1.7 the nanoseconds timestamps would get displayed incorrectly . For example 1701833040235501418 would be displayed as 1701833040235501300.
The text was updated successfully, but these errors were encountered:
Hi, this is expected at the moment and and there is currently no plan on changing it. See #2962 for similar issue. Note that jq 1.7 an 1.7.1 truncates a bit differently. jq 1.7.1 was changed to truncate more similar to other language implementations:
Describe the bug
A bug when doing the subtraction math operations on long number (e.g. timestamps with nanosecond precision).
To Reproduce
Expected behavior
The expected result is:
1701833040235520606 - 1701833040235501418 = 19188
I noticed that the actual result that we get matches up with:
1701833040235520600 - 1701833040235501400 = 19200
So the timestamps are truncated to the hundredths.
Environment (please complete the following information):
Additional context
I know that jq version 1.7 had a fix to display long numbers correctly. Before version 1.7 the nanoseconds timestamps would get displayed incorrectly . For example 1701833040235501418 would be displayed as 1701833040235501300.
The text was updated successfully, but these errors were encountered: