bziobrowski opened a new pull request, #14337:
URL: https://github.com/apache/pinot/pull/14337
When extracting very large LONG numbers, `json_extract_scalar()` function is
losing some precision, even though the numbers should be able to fit into a
LONG size just fine.
For example, if there's a JSON column called properties that looks like
```
{
"num_clicks": "5514400327644543899"
}
```
then sql such as
```sql
select json_extract_scalar(properties, '$.num_clicks', 'LONG', 0) from tab
```
returns 5514400327644544000.
That is because function parses as Double and then casts to long.
This PR first tries to parse as Long and then reverts to double to support
scientific notation.
Reported by @AlexanderKM
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]