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

Add Pyarrow support to Batched DoFn documentation #23956

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions website/www/site/content/en/documentation/programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7968,6 +7968,16 @@ batch typehint – but Beam supports typehints from other libraries as well.
| `Any` | |
| [Beam Schema Types](#schemas) | `pd.DataFrame` |

#### [pyarrow](https://github.com/apache/beam/blob/master/sdks/python/apache_beam/typehints/arrow_type_compatibility.py)

| Element Typehint | Batch Typehint |
| ---------------- | -------------- |
| Numeric types (`int`, `np.int32`, `bool`, ...) | `pd.Series` |
| `Any` | |
| `List` | |
| `Mapping` | |
| [Beam Schema Types](#schemas) | `pa.Table` |

#### Other types?
If there are other batch types you would like to use with Batched DoFns, please
[file an issue](https://github.com/apache/beam/issues/new/choose).
Expand Down