-
Notifications
You must be signed in to change notification settings - Fork 13
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
Dynamic Filters in Trino Rest #292
Comments
I have the same questions |
@nineinchnick can you help us with this? |
There are a few things to unpack here. Predicate pushdown supportThe API endpoints may support filters with only an equality operator (key=value). If there's a predicate in the SQL that's correctly pushed down, the connector may attempt at making multiple API calls for every value, and create a union of the results. If an API supported multiple-value filters, then the pushdown implementation in the connector would have to be more advanced. Dynamic filter supportDynamic filters might be used when a JOIN is not pushed down. They are predicates generated by the engine, after fetching data from one side of the join. Note that predicates with subqueries can be turned into a join, so a query like Also check out a newer connector that's more generic: https://github.com/nineinchnick/trino-openapi |
I have a rest catalog and a query like:
or
Suppose comments table is a rest API like GET /{media}/comments and media table returns all media.
No constraint came to applyFilter or getRows.
When I debug the application, I have found that there is DynamicFilter parameter in RecordPageSourceProvider, but it wasn't passed to RecordPageSource.
I have a couple of questions?
The text was updated successfully, but these errors were encountered: