Can i implement the following mysql query with elasticsearch?
select sum(column1)/sum(column2) v1, min(column3) v2, sum(column4) v3
from mytable
group by column5, column6
Thank you for writing an example!
Can i implement the following mysql query with elasticsearch?
select sum(column1)/sum(column2) v1, min(column3) v2, sum(column4) v3
from mytable
group by column5, column6
Thank you for writing an example!
Should be doable! I'm on the run so I can't work out a full example, but I would do:
column5
column6
column3
column1
, column2
, column3
sum(column1) / sum(column2)
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 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.