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

Changhiskhan/list versions #516

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Changhiskhan/list versions #516

merged 2 commits into from
Feb 2, 2023

Conversation

changhiskhan
Copy link
Contributor

closes #511

@changhiskhan changhiskhan requested a review from eddyxu February 2, 2023 07:55
fn versions(self_: PyRef<'_, Self>) -> PyResult<Vec<PyObject>> {
let versions = self_
.list_versions()
.map_err(|err| PyValueError::new_err(err.to_string()))?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Make a rust Error class for lance/python?

}
}

impl Dataset {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a separated function from other implementations? why do you need to have a separate impl Dataset here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so it's not exposed as pymethod

python/src/dataset.rs Show resolved Hide resolved
@changhiskhan changhiskhan merged commit b1fd3e9 into main Feb 2, 2023
@changhiskhan changhiskhan deleted the changhiskhan/list-versions branch February 2, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

list available versions
2 participants