Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add geo-spacial quering to sql #3151

Open
sholomellenbogen opened this issue Nov 11, 2024 · 4 comments
Open

[FEATURE] Add geo-spacial quering to sql #3151

sholomellenbogen opened this issue Nov 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@sholomellenbogen
Copy link

Is your feature request related to a problem?
I have 2 indexes, in 1 I have data that has polygons and the other index contains extra contextual data for each record. I need to be able to run a geo-spacial query (geo_shape) on the first index and join the results with the second index.

What solution would you like?
Add a geo_shape function to sql so that I can do the entire query in sql to take advantage of the ability to join across multiple indexes.

What alternatives have you considered?
And alternative I tried was to create a search-processor using a filter query. I had the processor do the geo-shape query and I tried to use a sql query to join that search pipeline result with the second index. I could not figure out (or there is no way) to invoke the search pipeline created by the processor in sql. If I could do this it would be an acceptable solution as well.

@sholomellenbogen sholomellenbogen added enhancement New feature or request untriaged labels Nov 11, 2024
@YANG-DB
Copy link
Member

YANG-DB commented Nov 27, 2024

hi @sholomellenbogen - thanks for u'r request
we are currently working on a few new PPL language support commands related Geo feature - hopefully the next release or the following one will have some related capabilities

@sholomellenbogen
Copy link
Author

sholomellenbogen commented Nov 29, 2024

Hi @YANG-DB, I am not very familiar with PPL. Would it allow us to join the results from 2 indexes together?

My problem is that I specifically need to be able to join the results from 2 indexes where the first index is filtered by a geo-spacial query. |

I know I can join 2 indexes with SQL already so adding geo-spacial query filtering to that would solve my problem. Adding it to PPL would only solve it if I can also join 2 indexes using it.

@dblock dblock removed the untriaged label Dec 2, 2024
@dblock
Copy link
Member

dblock commented Dec 2, 2024

[Catch All Triage - 1, 2, 3]

@YANG-DB
Copy link
Member

YANG-DB commented Dec 2, 2024

@sholomellenbogen PPL is an opensearch language we are supporting for performing queries and data analysts
please take some time to review the language and see if it's grammar can help you...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants