Skip to content

Commit

Permalink
Fix relative paths in output
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatia committed Dec 15, 2023
1 parent 3db850c commit 24f1d73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/src/test-cppapi-consolidation-plan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "tiledb/sm/cpp_api/tiledb"
#include "tiledb/sm/cpp_api/tiledb_experimental"
#include "tiledb/sm/enums/serialization_type.h"
#include "tiledb/sm/filesystem/uri.h"
#include "tiledb/sm/serialization/consolidation.h"

#include <test/support/tdb_catch.h>
Expand Down Expand Up @@ -170,7 +171,7 @@ std::string CppConsolidationPlanFx::write_sparse(
// Close array.
array->close();

return query.fragment_uri(0);
return tiledb::sm::URI(query.fragment_uri(0)).last_path_part();
}

void CppConsolidationPlanFx::remove_array(const std::string& array_name) {
Expand Down
6 changes: 4 additions & 2 deletions tiledb/sm/consolidation_plan/consolidation_plan.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ class ConsolidationPlan {
std::vector<std::string> ret;
ret.reserve(fragment_indexes_.size());
for (auto& idx : fragment_indexes_) {
ret.emplace_back(
array_->fragment_metadata()[idx]->fragment_uri().c_str());
ret.emplace_back(array_->fragment_metadata()[idx]
->fragment_uri()
.last_path_part()
.c_str());
}

return ret;
Expand Down

0 comments on commit 24f1d73

Please sign in to comment.