jq 1.7 keeps 12345678901234567890 exactly until any arithmetic, then prints 12345678901234567000
Tested with jq-1.7.1-apple on macOS 26.5.
echo '{"id":12345678901234567890}' | jq -c '.id, (.id+0), (.id|tostring)'
Output: 12345678901234567890 12345678901234567000 "12345678901234567890"
Cause: jq 1.7 keeps the original text of a number literal and prints it unchanged if you only pass it through. Arithmetic on the value (even adding 0) converts it to an IEEE double, which has about 17 significant digits. The digits beyond that are lost without a warning. In the same test, sort_by(.id) still printed the original digits.
Fix: do not do arithmetic on large IDs. Pass them through untouched, or convert with tostring before any other step. Better, have the producer emit large IDs as JSON strings. Check with: jq '.id|tostring' to see the original digits.