@@ -49,19 +49,19 @@ Status UpdateTotal(std::unordered_map<std::string, std::string>& summary,
4949 auto total_it = previous_summary.find (total_property);
5050 if (total_it != previous_summary.end ()) {
5151 ICEBERG_ASSIGN_OR_RAISE (auto new_total,
52- StringUtils::ParseInt <int64_t >(total_it->second ));
52+ StringUtils::ParseNumber <int64_t >(total_it->second ));
5353
5454 auto added_it = summary.find (added_property);
5555 if (new_total >= 0 && added_it != summary.end ()) {
5656 ICEBERG_ASSIGN_OR_RAISE (auto added_value,
57- StringUtils::ParseInt <int64_t >(added_it->second ));
57+ StringUtils::ParseNumber <int64_t >(added_it->second ));
5858 new_total += added_value;
5959 }
6060
6161 auto deleted_it = summary.find (deleted_property);
6262 if (new_total >= 0 && deleted_it != summary.end ()) {
6363 ICEBERG_ASSIGN_OR_RAISE (auto deleted_value,
64- StringUtils::ParseInt <int64_t >(deleted_it->second ));
64+ StringUtils::ParseNumber <int64_t >(deleted_it->second ));
6565 new_total -= deleted_value;
6666 }
6767
@@ -276,9 +276,9 @@ Result<SnapshotUpdate::ApplyResult> SnapshotUpdate::Apply() {
276276 auto added_records_it = summary.find (SnapshotSummaryFields::kAddedRecords );
277277 auto replaced_records_it = summary.find (SnapshotSummaryFields::kDeletedRecords );
278278 if (added_records_it != summary.cend () && replaced_records_it != summary.cend ()) {
279- ICEBERG_ASSIGN_OR_RAISE (auto added_records,
280- StringUtils::ParseInt< int64_t >( added_records_it->second ));
281- ICEBERG_ASSIGN_OR_RAISE (auto replaced_records, StringUtils::ParseInt <int64_t >(
279+ ICEBERG_ASSIGN_OR_RAISE (auto added_records, StringUtils::ParseNumber< int64_t >(
280+ added_records_it->second ));
281+ ICEBERG_ASSIGN_OR_RAISE (auto replaced_records, StringUtils::ParseNumber <int64_t >(
282282 replaced_records_it->second ));
283283 ICEBERG_PRECHECK (
284284 added_records <= replaced_records,
0 commit comments