Skip to content

[BUG] eval returns integer division result instead of decimal #3946

@penghuo

Description

@penghuo

What is the bug?
A clear and concise description of the bug.

How can one reproduce the bug?
The value of v is returned as 0

source=test002 | eval v=5/10

What is the expected behavior?
The expected result is:

v = 0.5

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22], 3.1
  • Plugins, SQL

Do you have any screenshots?
n/a

Do you have any additional context?
n/a

Metadata

Metadata

Assignees

Labels

PPLPiped processing languagebugSomething isn't workingv3.4.0

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions