-
Notifications
You must be signed in to change notification settings - Fork 265
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
base: main
Are you sure you want to change the base?
Conversation
Ready for review @yanghua @westonpace |
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.
Seems alright, although we can simplify things by not creating new code that is already deprecated.
python/python/lance/dataset.py
Outdated
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) |
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.
Why create brand new APIs that are deprecated?
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 |
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.
OK, I removed the pa.schema
support
Fix #3537