Open astefan opened 5 years ago
Pinging @elastic/es-search
After some digging, my test was faulty because, apparently, I was using a REST client that re-formatted the json output.
In reality, using curl
or the Chrome browser revealed that the output is consistent throughout all formats (which is expected and desirable) and the output is the default Java behavior for formatting numbers:
If m is less than 10-3 or greater than or equal to 107, then it is represented in so-called "computerized scientific notation."
For the time being, we will leave this as is right now, but leave this issue open to record any future desire in this behavior change.
Pinging @elastic/es-analytical-engine (Team:Analytics)
The doubles number formatting varies between formats. Basically,
json
is the most "user-friendly" and others should format the numbers the same way./_xpack/sql?format=txt
/_xpack/sql?format=json
/_xpack/sql?format=yaml
/_xpack/sql?format=csv
/_xpack/sql?format=tsv