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

Create a robust solution to generate the queries of the PostgresTileStore #913

Open
bchapuis opened this issue Jan 9, 2025 · 0 comments

Comments

@bchapuis
Copy link
Member

bchapuis commented Jan 9, 2025

The current solution is naive and does not support complex queries. It need to be reworked with a query parser such as jsqlparser or calcite to cover cases involving subqueries, GROUP BY, HAVING, LIMIT, and ORDER BY clauses in user provided queries.

bchapuis added a commit that referenced this issue Jan 9, 2025
The query optimizer of Postgres 15 is not able to push conditions down when using sub-queries. Therefore, we now append the spatial conditions to the sub-query. The unit tests have been adapted accordingly. A more robust solution involving a query parser will be devised (#913) in the future to account for more complex queries (GROUP BY, HAVING, etc.).

---------

Co-authored-by: AlexGacon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant