Skip to content

Commit 19360d5

Browse files
authored
ARROW-115 Changelog for 0.5.0 (#90)
1 parent 4efea08 commit 19360d5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

bindings/python/docs/source/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
=========
33

4+
Changes in Version 0.5.0
5+
------------------------
6+
- Support auto-discovery of schemas in ``find/aggregate_*_all`` methods.
7+
If the schema is not given, it will be inferred using the first
8+
document in the result set.
9+
- Support PyArrow 9.0.
10+
- Improve error message for lib ImportError.
11+
412
Changes in Version 0.4.0
513
------------------------
614
- Support for :class:`~bson.decimal128.Decimal128` type.

bindings/python/pymongoarrow/api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def find_arrow_all(collection, query, *, schema=None, **kwargs):
6767
against which to run the ``find`` operation.
6868
- `query`: A mapping containing the query to use for the find operation.
6969
- `schema` (optional): Instance of :class:`~pymongoarrow.schema.Schema`.
70+
If the schema is not given, it will be inferred using the first
71+
document in the result set.
7072
7173
Additional keyword-arguments passed to this method will be passed
7274
directly to the underlying ``find`` operation.
@@ -103,6 +105,8 @@ def aggregate_arrow_all(collection, pipeline, *, schema=None, **kwargs):
103105
against which to run the ``aggregate`` operation.
104106
- `pipeline`: A list of aggregation pipeline stages.
105107
- `schema` (optional): Instance of :class:`~pymongoarrow.schema.Schema`.
108+
If the schema is not given, it will be inferred using the first
109+
document in the result set.
106110
107111
Additional keyword-arguments passed to this method will be passed
108112
directly to the underlying ``aggregate`` operation.
@@ -154,6 +158,8 @@ def find_pandas_all(collection, query, *, schema=None, **kwargs):
154158
against which to run the ``find`` operation.
155159
- `query`: A mapping containing the query to use for the find operation.
156160
- `schema` (optional): Instance of :class:`~pymongoarrow.schema.Schema`.
161+
If the schema is not given, it will be inferred using the first
162+
document in the result set.
157163
158164
Additional keyword-arguments passed to this method will be passed
159165
directly to the underlying ``find`` operation.
@@ -173,6 +179,8 @@ def aggregate_pandas_all(collection, pipeline, *, schema=None, **kwargs):
173179
against which to run the ``find`` operation.
174180
- `pipeline`: A list of aggregation pipeline stages.
175181
- `schema` (optional): Instance of :class:`~pymongoarrow.schema.Schema`.
182+
If the schema is not given, it will be inferred using the first
183+
document in the result set.
176184
177185
Additional keyword-arguments passed to this method will be passed
178186
directly to the underlying ``aggregate`` operation.
@@ -214,6 +222,8 @@ def find_numpy_all(collection, query, *, schema=None, **kwargs):
214222
against which to run the ``find`` operation.
215223
- `query`: A mapping containing the query to use for the find operation.
216224
- `schema` (optional): Instance of :class:`~pymongoarrow.schema.Schema`.
225+
If the schema is not given, it will be inferred using the first
226+
document in the result set.
217227
218228
Additional keyword-arguments passed to this method will be passed
219229
directly to the underlying ``find`` operation.
@@ -243,6 +253,8 @@ def aggregate_numpy_all(collection, pipeline, *, schema=None, **kwargs):
243253
against which to run the ``find`` operation.
244254
- `query`: A mapping containing the query to use for the find operation.
245255
- `schema` (optional): Instance of :class:`~pymongoarrow.schema.Schema`.
256+
If the schema is not given, it will be inferred using the first
257+
document in the result set.
246258
247259
Additional keyword-arguments passed to this method will be passed
248260
directly to the underlying ``aggregate`` operation.

0 commit comments

Comments
 (0)