Skip to content

ESQL: AUTO_BUCKET() can return NaN #105166

@bpintea

Description

@bpintea

Description

Specifying a zero as the number of buckets with numeric field will return NaN instead of null (due to div by 0).
Ex: ROW AUTO_BUCKET(1, 0, 0, 0)

Same for negative number of buckets (due to log10(negative)).
Ex: ROW AUTO_BUCKET(1, -1, 0, 0)

Same for a number of buckets value that wraps over int (due to int overflow).
Ex: ROW AUTO_BUCKET(0, 100000000000, 0, 0)

Related: #98698.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions