Description
With csv-spec test dataset
from clientips,*
| dissect street "%{height_range} %{MNyXV}"
| rename env AS kxpCK, pod AS etUHW, language_code AS city.country.continent.planet.galaxy
| rename city.country.continent.planet.name as message
| lookup join message_types_lookup on message
| rename languages.int as language_code
| lookup join languages_lookup on language_code
| rename language_code as language_code
| lookup join languages_lookup on language_code
| sort decade DESC NULLS FIRST, year ASC NULLS FIRST, country.keyword ASC, num ASC NULLS LAST, network.bytes_in ASC, author.keyword ASC, languages.byte DESC NULLS LAST, type ASC NULLS LAST, zip_code NULLS FIRST, height_range, number ASC, language_code ASC NULLS LAST, host_group NULLS LAST, MNyXV ASC NULLS FIRST, kxpCK ASC, language.id ASC, languages.long DESC NULLS FIRST, host.name ASC, city.country.continent.name ASC NULLS FIRST, author DESC NULLS LAST, ip0, event_duration ASC NULLS LAST, scalerank ASC, ip1 DESC, client.ip NULLS FIRST, message NULLS FIRST, city.country.name ASC NULLS FIRST, version ASC NULLS FIRST, airport ASC NULLS FIRST, language.code ASC NULLS LAST, language.name.keyword NULLS FIRST, city.name DESC NULLS LAST, city.country.continent.planet.galaxy NULLS FIRST, publisher ASC NULLS FIRST, abbrev DESC NULLS FIRST, card ASC, salary_change.keyword NULLS FIRST, lk ASC NULLS FIRST
TODO: simplify the query, it's extreme because it's randomly generated
{
"error": {
"root_cause": [
{
"type": "null_pointer_exception",
"reason": "Cannot read field \"nameIds\" because \"set\" is null"
}
],
"type": "null_pointer_exception",
"reason": "Cannot read field \"nameIds\" because \"set\" is null"
},
"status": 500
}
ESQL request failed with status [INTERNAL_SERVER_ERROR]: java.lang.NullPointerException: Cannot read field "nameIds" because "set" is null
at org.elasticsearch.xpack.esql.planner.Layout$Builder.build(Layout.java:111)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planEval(LocalExecutionPlanner.java:412)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:211)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planProject(LocalExecutionPlanner.java:640)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:217)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planLookupJoin(LocalExecutionPlanner.java:562)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:243)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planEval(LocalExecutionPlanner.java:406)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:211)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planProject(LocalExecutionPlanner.java:640)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:217)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.planLookupJoin(LocalExecutionPlanner.java:562)
at org.elasticsearch.xpack.esql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:243)