Skip to content

Commit 3fc2374

Browse files
author
shuxu.li
committed
feat: metadata access support for table
1 parent 43979f2 commit 3fc2374

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/iceberg/table.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ class ICEBERG_EXPORT Table {
107107

108108
private:
109109
const TableIdentifier identifier_;
110-
const std::shared_ptr<TableMetadata> metadata_;
110+
std::shared_ptr<TableMetadata> metadata_;
111111
const std::string metadata_location_;
112112
std::shared_ptr<FileIO> io_;
113113
std::shared_ptr<Catalog> catalog_;
114114

115+
// Cache lazy-initialized maps.
115116
mutable std::shared_ptr<std::unordered_map<int32_t, std::shared_ptr<Schema>>>
116117
schemas_map_;
117118
mutable std::shared_ptr<std::unordered_map<int32_t, std::shared_ptr<PartitionSpec>>>

src/iceberg/table_metadata.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@
2323
/// Table metadata for Iceberg tables.
2424

2525
#include <memory>
26-
#include <mutex>
2726
#include <string>
2827
#include <string_view>
2928
#include <unordered_map>
3029
#include <vector>
3130

3231
#include "iceberg/iceberg_export.h"
33-
#include "iceberg/snapshot.h"
3432
#include "iceberg/type_fwd.h"
3533
#include "iceberg/util/timepoint.h"
3634

0 commit comments

Comments
 (0)