apache / apache/datafusion

math functions precision with f64 doesn't quite vibe on FreeBSD

Open
#11,179 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Describe the bug

When running `cargo test` on FreeBSD

```
---- math::log::tests::test_log_f64 stdout ----

thread 'math::log::tests::test_log_f64' panicked at datafusion/functions/src/math/log.rs:259:17:

assertion `left == right` failed

left: 4.000000000000001

right: 4.0

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:

math::log::tests::test_log_f64
```

### To Reproduce

```
FreeBSD jenkins-agent 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
```

```
rustc 1.77.2 (25ef9e3d8 2024-04-09)
```

### Expected behavior

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with datafusion/functions/src/math/log.rs and the math::log::tests::test_log_f64 failure at line 259. Reproduce the assertion failure with cargo test on the reported FreeBSD and inspect the f64 precision behavior. Done means the math test has platform-appropriate expectations or behavior and passes on the affected environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, testing
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.