[Painless Lab] Floating point values coerced to integers #60140
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Dev Tools
Feature:Painless Lab
Dev tool for learning Painless
painless
painless
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
The API expects floating point parameters to be respected, e.g.
This resolves to
0.1
. However, if we set the Parameters tab to:And then execute a script of
params.count / params.total
, then the request is sent with coerced integer parameters of100
and1000
. Because they're integer values, they resolve to0
.The text was updated successfully, but these errors were encountered: