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
When I parse the id field jq is showing a different rounded number. For convenience, Twitter guys implemented a field id_str been a string it doesn't suffer from the same behavior, and contains the desired value.
AFIK, this problem didn't happened before (I'm been using JQ for several years now), so I believe it can be related to the increasing ID value on tweets may be responsible for it.
I'm leaving a sample file which contains 30 tweets where you can compare both fields: statuses-sample.txt
This is often reported. (see also #545, #529, and #178)
The summary here is that it's not a bug. Internally, we use IEEE754 doubles, and those can't perfectly represent all integers, especially not all large ones. We have a feature we're working on (#1327) that will somewhat improve this behavior.
Closing as a duplicate.
Twitter statuses (tweets) ids are implemented as 64-bit unsigned integers (more on the implementation here).
When I parse the
id
fieldjq
is showing a different rounded number. For convenience, Twitter guys implemented a fieldid_str
been a string it doesn't suffer from the same behavior, and contains the desired value.AFIK, this problem didn't happened before (I'm been using JQ for several years now), so I believe it can be related to the increasing ID value on tweets may be responsible for it.
I'm leaving a sample file which contains 30 tweets where you can compare both fields: statuses-sample.txt
The text was updated successfully, but these errors were encountered: