-
Notifications
You must be signed in to change notification settings - Fork 608
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
ci: test examples #10098
ci: test examples #10098
Conversation
7f06ad2
to
a92afac
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.
LGTM, just two small comments to check weather those changes belong here or not.
@@ -372,7 +373,7 @@ def _register( | |||
self.con.deregister_table(table_name) | |||
self.con.register_record_batches(table_name, [[source]]) | |||
return self.table(table_name) | |||
elif isinstance(source, pa.dataset.Dataset): | |||
elif isinstance(source, ds.Dataset): |
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 seems to be unrelated to including examples in the tests suit, just making sure you are ok with that.
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.
These are definitely related. They aren't hit unless the examples are run.
@@ -45,6 +44,8 @@ def test_register_batches(conn): | |||
|
|||
|
|||
def test_register_dataset(conn): | |||
import pyarrow.dataset as ds |
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.
same that the comment above. If we are good with these nits getting in here, all good.
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.
Definitely related, for the same reason.
We were not testing examples in CI because we did not install the
examples
extra. Now we are.