Hello,
does the command ROW_NUMBER()
exist for ES SQL?
When not, is there something equivalent to it?
Can someone do an example, please?
With best regards
Hello,
does the command ROW_NUMBER()
exist for ES SQL?
When not, is there something equivalent to it?
Can someone do an example, please?
With best regards
Can you explain a little more what you'd like to achieve with this?
of course!
After performing the ES SQL query in a Canvas workspace, we want that the result of the search is getting displayed in the preview of a datatable with row numbers.
You could order by customer_id
, but the results of the sum won't translate into rows so I don't think that really translates here.
In the end, we want to add a column from 1-n to our ES SQL result where n is the numbers of elements found in the ES SQL query.
There's no concept of a row ID in Elasticsearch.
And I understand the outcome, I just don't see why it'd matter when you can sort on the customer ID? Unless there's something else specific you want to do with the row ID I am not aware of.
We have significant issues ordering our data table in the Canvas workpad accordingly to the timestamps.
I explain the full problem here: Link
If this problem is solved then we are happy and we can continue our work.
In order to make the data table only present elements which lie between two dates, we thought to take these steps:
We hope that you understand our request.
We just want to filter our data table according to a given timespan.
With best regards
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.