-
Notifications
You must be signed in to change notification settings - Fork 445
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
Add auto document wrapping in insert query #2097
Conversation
@@ -394,9 +394,23 @@ def add_fold(self, fold: str): | |||
@applies_to('insert_many', 'insert_one') | |||
def documents(self): | |||
"""Return the documents to insert.""" | |||
|
|||
def _wrap_document(document): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we move it to base and use it in ibis and mongodb both
@jieguangzhou @blythed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a general logic, can we move it into query.__post_init__
@@ -394,9 +394,23 @@ def add_fold(self, fold: str): | |||
@applies_to('insert_many', 'insert_one') | |||
def documents(self): | |||
"""Return the documents to insert.""" | |||
|
|||
def _wrap_document(document): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a general logic, can we move it into query.__post_init__
Description
fix #2043
https://github.com/SuperDuperDB/superduperdb/issues/2098
Related Issues
Checklist
make unit_testing
andmake integration-testing
successfully?Additional Notes or Comments