Discard empty/null values

Hi,

Is there a way to KEEP fields which are not null/empty with ES|QL?

I do not want to manually write KEEP for all of the fields which are not empty.

1 Like

Apparently the only way is by using drop_null_columns query param. But it's not available within the query itself.

See ES|QL query API | Elasticsearch Guide [8.17] | Elastic