I want to join fields from two indexes/data views into one to show them in canvas dropdown, or want essql version of below sql code
SELECT "client_id" AS id
FROM "client_data*"
UNION
SELECT "identifient_id" AS id
FROM "id_data*"
I want to join fields from two indexes/data views into one to show them in canvas dropdown, or want essql version of below sql code
SELECT "client_id" AS id
FROM "client_data*"
UNION
SELECT "identifient_id" AS id
FROM "id_data*"
Hi @aman_kumar4 ,
ES|QL doesn't have a specific UNION command, so I asked internally, and they suggested trying something roughly like this:
from client_data*,id_data* | eval id = case(client_id IS NULL, identifient_id, client_id) | drop identifient_id, client_id
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.