@@ -188,7 +188,7 @@ Result<std::vector<GenericRow>> AllTableOptionsSystemTable::BuildRows() const {
188188 if (!schema_result.ok ()) {
189189 continue ; // skip tables with errors (e.g. dropped concurrently)
190190 }
191- auto schema_ptr = schema_result.ValueUnsafe ();
191+ auto schema_ptr = schema_result.value ();
192192 auto data_schema = std::dynamic_pointer_cast<DataSchema>(schema_ptr);
193193 if (!data_schema) {
194194 continue ;
@@ -247,7 +247,7 @@ Result<std::vector<GenericRow>> TablesSystemTable::BuildRows() const {
247247 if (!schema_result.ok ()) {
248248 continue ;
249249 }
250- auto schema_ptr = schema_result.ValueUnsafe ();
250+ auto schema_ptr = schema_result.value ();
251251 auto data_schema = std::dynamic_pointer_cast<DataSchema>(schema_ptr);
252252 if (!data_schema) {
253253 continue ;
@@ -282,8 +282,8 @@ Result<std::vector<GenericRow>> TablesSystemTable::BuildRows() const {
282282 SnapshotManager snapshot_manager (context_.fs , table_path,
283283 BranchManager::DEFAULT_MAIN_BRANCH );
284284 auto snapshot_result = snapshot_manager.LatestSnapshot ();
285- if (snapshot_result.ok () && snapshot_result.ValueUnsafe ()) {
286- const auto & snapshot = *snapshot_result.ValueUnsafe ();
285+ if (snapshot_result.ok () && snapshot_result.value ()) {
286+ const auto & snapshot = *snapshot_result.value ();
287287 auto total_count = snapshot.TotalRecordCount ();
288288 row.SetField (5 , total_count ? VariantType (total_count.value ())
289289 : VariantType (NullType ()));
0 commit comments