Skip to content

Commit

Permalink
[Cpp] Schema return storage's schema (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Oct 19, 2023
1 parent b3e746e commit 4dd296e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/milvus-storage/storage/space.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Space {

std::vector<Blob> StatisticsBlobs();

arrow::Schema Schema();
std::shared_ptr<Schema> schema();

private:
Status Init();
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/storage/space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,6 @@ Result<std::shared_ptr<arrow::RecordBatchReader>> Space::ScanData() {
return RecordReader::MakeScanDataReader(manifest_, fs_);
}

arrow::Schema Space::Schema() { return *manifest_->schema()->schema(); }
std::shared_ptr<Schema> Space::schema() { return manifest_->schema(); }

} // namespace milvus_storage

0 comments on commit 4dd296e

Please sign in to comment.