quickwit-oss / quickwit-oss/quickwit

floating point that are whole number are shown without .0

Open
#5,225 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug quickwit-ui
Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

image

when showing floating point (in this case inside a json field, i haven't tried in a f64 field, but have no reason to think it's different), if the value is a whole number such as 404.0, it is shown as 404 (no .0). This is very confusing as if you search for 404 inside a json field, you won't find documents where the value was actually 404.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior for a whole-number floating-point value such as 404.0 inside a JSON field, and compare it with a value stored as 404. Check how displayed values are serialized and how searches distinguish 404 from 404.0. Done means whole-number floating-point values retain the .0 representation and the corresponding searches behave distinctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.