@@ -272,11 +272,13 @@ DatastoreSerializer::MergeLookupResponses(
272272 return result;
273273}
274274
275+ // TODO(b/443765747) Revert back to absl::flat_hash_map after the absl version
276+ // is upgraded to later than 20250127.0
275277Message<google_firestore_v1_RunAggregationQueryRequest>
276278DatastoreSerializer::EncodeAggregateQueryRequest (
277279 const core::Query& query,
278280 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 {
280282 Message<google_firestore_v1_RunAggregationQueryRequest> result;
281283 auto encodedTarget = serializer_.EncodeQueryTarget (query.ToAggregateTarget ());
282284 result->parent = encodedTarget.parent ;
@@ -291,7 +293,9 @@ DatastoreSerializer::EncodeAggregateQueryRequest(
291293 // De-duplicate aggregates based on the alias.
292294 // Since aliases are auto-computed from the operation and path,
293295 // 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;
295299 for (const AggregateField& aggregate : aggregates) {
296300 auto pair = std::pair<std::string, AggregateField>(
297301 aggregate.alias .StringValue (), aggregate);
@@ -365,9 +369,11 @@ DatastoreSerializer::EncodeAggregateQueryRequest(
365369 return result;
366370}
367371
372+ // TODO(b/443765747) Revert back to absl::flat_hash_map after the absl version
373+ // is upgraded to later than 20250127.0
368374util::StatusOr<ObjectValue> DatastoreSerializer::DecodeAggregateQueryResponse (
369375 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 {
371377 ByteBufferReader reader{response};
372378 auto message =
373379 Message<google_firestore_v1_RunAggregationQueryResponse>::TryParse (
0 commit comments