@@ -272,11 +272,13 @@ DatastoreSerializer::MergeLookupResponses(
272
272
return result;
273
273
}
274
274
275
+ // TODO(b/443765747) Revert back to absl::flat_hash_map after the absl version
276
+ // is upgraded to later than 20250127.0
275
277
Message<google_firestore_v1_RunAggregationQueryRequest>
276
278
DatastoreSerializer::EncodeAggregateQueryRequest (
277
279
const core::Query& query,
278
280
const std::vector<AggregateField>& aggregates,
279
- absl::flat_hash_map <std::string, std::string>& aliasMap) const {
281
+ std::unordered_map <std::string, std::string>& aliasMap) const {
280
282
Message<google_firestore_v1_RunAggregationQueryRequest> result;
281
283
auto encodedTarget = serializer_.EncodeQueryTarget (query.ToAggregateTarget ());
282
284
result->parent = encodedTarget.parent ;
@@ -291,7 +293,9 @@ DatastoreSerializer::EncodeAggregateQueryRequest(
291
293
// De-duplicate aggregates based on the alias.
292
294
// Since aliases are auto-computed from the operation and path,
293
295
// equal aggregate will have the same alias.
294
- absl::flat_hash_map<std::string, AggregateField> uniqueAggregates;
296
+ // TODO(b/443765747) Revert back to absl::flat_hash_map after the absl version
297
+ // is upgraded to later than 20250127.0
298
+ std::unordered_map<std::string, AggregateField> uniqueAggregates;
295
299
for (const AggregateField& aggregate : aggregates) {
296
300
auto pair = std::pair<std::string, AggregateField>(
297
301
aggregate.alias .StringValue (), aggregate);
@@ -365,9 +369,11 @@ DatastoreSerializer::EncodeAggregateQueryRequest(
365
369
return result;
366
370
}
367
371
372
+ // TODO(b/443765747) Revert back to absl::flat_hash_map after the absl version
373
+ // is upgraded to later than 20250127.0
368
374
util::StatusOr<ObjectValue> DatastoreSerializer::DecodeAggregateQueryResponse (
369
375
const grpc::ByteBuffer& response,
370
- const absl::flat_hash_map <std::string, std::string>& aliasMap) const {
376
+ const std::unordered_map <std::string, std::string>& aliasMap) const {
371
377
ByteBufferReader reader{response};
372
378
auto message =
373
379
Message<google_firestore_v1_RunAggregationQueryResponse>::TryParse (
0 commit comments