opensearch-project / opensearch-project/data-prepper

Enhance Data Prepper Expression Numeric Support

Open
#1,109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backlog enhancement
Dominant language
Java
Stars
374
Forks
354
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
Data Prepper Expressions today have limited support for precise floating point operations.

Examples of expressions that give unexpected results:

2000000000 == 2000000000.1
0.1 == 0.10000000000001

Describe the solution you'd like

  • Added support for a tolerance value in floating point operations.
  • Add Double support
  • Add Long support

Describe alternatives you've considered (Optional)
n/a

Additional context
n/a

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

The issue does not identify files, tests, or an expression entry point. Start by locating the Data Prepper Expressions implementation and its numeric-operation tests, then use the listed comparisons to define tolerance behavior and Double and Long support; done means these cases have precise, documented, and tested results.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.