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

feat: add project transaction operation for pylance sdk #3538

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

SaintBacchus
Copy link
Collaborator

Fix #3537

@github-actions github-actions bot added enhancement New feature or request python labels Mar 12, 2025
@SaintBacchus
Copy link
Collaborator Author

Ready for review @yanghua @westonpace

Copy link
Contributor

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems alright, although we can simplify things by not creating new code that is already deprecated.

Comment on lines 2997 to 3006
schema: LanceSchema | pa.Schema

def __post_init__(self):
if isinstance(self.schema, pa.Schema):
warnings.warn(
"Passing a pyarrow.Schema to Project is deprecated. "
"Please use a LanceSchema instead.",
DeprecationWarning,
)
self.schema = LanceSchema.from_pyarrow(self.schema)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why create brand new APIs that are deprecated?

Suggested change
schema: LanceSchema | pa.Schema
def __post_init__(self):
if isinstance(self.schema, pa.Schema):
warnings.warn(
"Passing a pyarrow.Schema to Project is deprecated. "
"Please use a LanceSchema instead.",
DeprecationWarning,
)
self.schema = LanceSchema.from_pyarrow(self.schema)
schema: LanceSchema

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I removed the pa.schema support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add project transaction operation for pylance sdk
2 participants