-
Notifications
You must be signed in to change notification settings - Fork 26
chore: remove async for upsert/delete/append in python #280
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
Conversation
|
cc @fresh-borzoni I'm going to merge it. Free feel to add following pr if you find any comments. |
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.
Pull request overview
This PR updates the Python type stubs to reflect the (now synchronous) queueing semantics for append/upsert/delete, aligning the Python binding API with the core changes described in PR #271.
Changes:
- Make
AppendWriter.append()synchronous and return aWriteResultHandle. - Make
UpsertWriter.upsert()/UpsertWriter.delete()synchronous and return aWriteResultHandle. - Add a
WriteResultHandletype stub with an asyncwait()method for per-record acknowledgment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Supported Types: | ||
| Currently supports primitive types only: | ||
| - Boolean, TinyInt, SmallInt, Int, BigInt (integers) |
Copilot
AI
Feb 8, 2026
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.
AppendWriter.write_arrow_batch is still typed as returning None in this stub, but the binding returns a WriteResultHandle (so callers can optionally await per-batch ack). Update the stub signature to return WriteResultHandle to match the actual API.
|
@luoyuxia Sure, sorry - I always forget about this file :) |
0f6ddbf to
3315af8
Compare
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fresh-borzoni
left a comment
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.
LGTM 👍
Purpose
Linked issue: close #xxx
Follow pr for #271
Brief change log
remove
asyncand returnWriteResultHandlein append/upsert/delete method in python bindingTests
API and Format
Documentation