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

Filter data through CQL2(Common Query Language) #1659

Open
huanglii opened this issue Jan 23, 2025 · 2 comments
Open

Filter data through CQL2(Common Query Language) #1659

huanglii opened this issue Jan 23, 2025 · 2 comments
Labels
serving Related to web serving component

Comments

@huanglii
Copy link

just like http://localhost:3000/points?filter=name like '%hello%'

@CommanderStorm
Copy link
Collaborator

The query language is quite involved to implement.
Maybe https://docs.rs/cql2 could help, but still seems like a lot of work.
=> At least it is not a priority for me. Other contributors might see this differently

We currently support postgis-functions which have a similar level of expressiveness, though you will need to hardcode what the input can be.

Given that the query language supports queries which might be pretty expensive (=> might be opening us up to a DOS attack), I am not shure at which level this should be supported.
=> What is your concrete usecase?

@CommanderStorm CommanderStorm changed the title Is there a plan to filter data through CQL2(Common Query Language)? Filter data through CQL2(Common Query Language)? Jan 26, 2025
@CommanderStorm CommanderStorm changed the title Filter data through CQL2(Common Query Language)? Filter data through CQL2(Common Query Language) Jan 26, 2025
@CommanderStorm CommanderStorm added enhancement serving Related to web serving component labels Jan 26, 2025
@huanglii
Copy link
Author

I want to have a query that is as flexible as CQL, and if we use functions, we may need to write many functions to implement it.

In addition, through the filter, when I only need a portion of the data, the tile size will also be much smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
serving Related to web serving component
Projects
None yet
Development

No branches or pull requests

2 participants