-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support row-level DELETEs in MongoDB connector #20642
Comments
It seems you're using the MongoDB connector. It doesn't support DELETE when the filter cannot be pushed down. In In the failing query you have OR on two different columns which isn't something we can push down to MongoDB yet. I'm changing the title to reflect what the actual ask is here but no one is actively working on this at the moment. |
In the Trino documentation, this is specified for other connectors but not for MongoDB |
@hashhar i want to work on it, can you please suggest good starting point? |
Executing the following query
This connector does not support modifying table rows |
@feealexandre this was already explained in the older comment that if the predicate (in this case an entire subquery) cannot be pushed down to the source then DELETE won't work with MongoDB connector. This matches your example. For people who are interested in working on this see #23034 for example of what it takes to add it to a JDBC based connector. |
Hi, I have tried on #23770. Welcome for the reviews |
When executing a select statement with an 'OR' condition, it is working well.
However, when attempting to execute a delete statement with the same 'OR' condition, an error is encountered.
The regular delete operation is functioning properly, and the OR condition with the same columns is also working correctly.
Could anyone help on this?
The text was updated successfully, but these errors were encountered: