Skip to content

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Sep 10, 2020

Lots of assorted things here:

  • Automatically generate global wrappers for calling
    registered compute functions
  • Improve metadata of such wrappers (e.g. name, docstring)
  • Make it easier to pass options (for example via kwargs)
  • Type-check options
  • Add some docstrings
  • Expose more function attributes (e.g. arity)
  • Fix some crashes

@github-actions
Copy link

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Nice improvements!

Copy link
Member

Choose a reason for hiding this comment

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

Should "meta" be explained here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, you're right.

Copy link
Member

Choose a reason for hiding this comment

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

Can we simply change this? (is it public on the C++ side?) And it is changed for consistency with how it's called elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

The next version will be 2.0.0, meaning it's ok to break APIs. Of course, we should try to minimize breakage, but this one aims to fix an inconsistency.

Lots of assorted things here:
* Automatically generate global wrappers for calling
  registered compute functions
* Improve metadata of such wrappers (e.g. name, docstring)
* Make it easier to pass options (for example via kwargs)
* Type-check options
* Add some docstrings
* Expose more function attributes (e.g. arity)
* Fix some crashes
@pitrou pitrou force-pushed the ARROW-9465-py-compute-cosmetics branch from 7cce626 to 648ee85 Compare September 14, 2020 13:35
@pitrou
Copy link
Member Author

pitrou commented Sep 14, 2020

CI failures here look unrelated (though someone should really take a look at them).

@pitrou pitrou closed this in 77a9933 Sep 14, 2020
@pitrou pitrou deleted the ARROW-9465-py-compute-cosmetics branch September 14, 2020 17:22
pitrou added a commit that referenced this pull request Oct 8, 2020
…sses

#8163 exposes `pyarrow.compute` kernels and generates their docstrings. This PR adds documentation for the module in the User Guide and the Python API reference.

Closes #8145 from arw2019/ARROW-7871

Lead-authored-by: arw2019 <andrew.r.wieteska@gmail.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
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.

2 participants