apache / apache/pinot

Some math functions return different results between 0.11.0 and 0.12.1

Open
#10,637 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
2d 55m
Merged PRs (30d)
182

Description

Example: exp(2 * ln(3)) returns 8.999999999999998 in 0.11.0 and 9.000000000000002 in 0.12.1.

To repro:
```
select , exp(2 * ln(3)) from
```
for any table. The result is computed during parsing.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the SQL query shown in the issue across versions 0.11.0 and 0.12.1, then trace where the result is computed during parsing. Done means identifying the source of the differing floating-point result and adding coverage or a documented correction for the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.