Transform using geotile_grid
pivot with missing_bucket=true
triggers NullPointerException
#126591
Labels
geotile_grid
pivot with missing_bucket=true
triggers NullPointerException
#126591
Elasticsearch Version
8.4.3
Installed Plugins
No response
Java Version
bundled
OS Version
Ubuntu 22.04
Problem Description
Using a transform which pivots on a
geotile_grid
will trigger a NullPointerException when setting themissing_buckets
option to true.The same composite aggregation works fine and correctly generates a bucket whose key contains a
null
value (as the value to aggregate on is missing). I believe it is a bug in the transform code when manipulating the composite bucket containing a key with anull
value.Steps to Reproduce
username
+location
fields:Result is as excepted. 2 buckets, one matching the 2 documents with geo_points and one matching the document with no geo_points.
Result in HTTP 500 error
Expected results: 2 buckets
Logs (if relevant)
Server logs contain the following backtrace:
The text was updated successfully, but these errors were encountered: