@@ -146,10 +146,16 @@ class Query(proto.Message):
146
146
The order to apply to the query results (if
147
147
empty, order is unspecified).
148
148
distinct_on (MutableSequence[google.cloud.datastore_v1.types.PropertyReference]):
149
- The properties to make distinct. The query
150
- results will contain the first result for each
151
- distinct combination of values for the given
152
- properties (if empty, all results are returned).
149
+ The properties to make distinct. The query results will
150
+ contain the first result for each distinct combination of
151
+ values for the given properties (if empty, all results are
152
+ returned).
153
+
154
+ Requires:
155
+
156
+ - If ``order`` is specified, the set of distinct on
157
+ properties must appear before the non-distinct on
158
+ properties in ``order``.
153
159
start_cursor (bytes):
154
160
A starting point for the query results. Query cursors are
155
161
returned in query result batches and `can only be used to
@@ -238,7 +244,7 @@ class AggregationQuery(proto.Message):
238
244
"""
239
245
240
246
class Aggregation (proto .Message ):
241
- r"""Defines a aggregation that produces a single result.
247
+ r"""Defines an aggregation that produces a single result.
242
248
243
249
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
244
250
@@ -261,7 +267,7 @@ class Aggregation(proto.Message):
261
267
COUNT_UP_TO(1) AS count_up_to_1,
262
268
COUNT_UP_TO(2),
263
269
COUNT_UP_TO(3) AS count_up_to_3,
264
- COUNT_UP_TO(4 )
270
+ COUNT(* )
265
271
OVER (
266
272
...
267
273
);
@@ -274,7 +280,7 @@ class Aggregation(proto.Message):
274
280
COUNT_UP_TO(1) AS count_up_to_1,
275
281
COUNT_UP_TO(2) AS property_1,
276
282
COUNT_UP_TO(3) AS count_up_to_3,
277
- COUNT_UP_TO(4 ) AS property_2
283
+ COUNT(* ) AS property_2
278
284
OVER (
279
285
...
280
286
);
@@ -298,7 +304,7 @@ class Count(proto.Message):
298
304
entities to count.
299
305
300
306
This provides a way to set an upper bound on the number of
301
- entities to scan, limiting latency and cost.
307
+ entities to scan, limiting latency, and cost.
302
308
303
309
Unspecified is interpreted as no bound.
304
310
0 commit comments