Compare commits

...

2 Commits

Author SHA1 Message Date
hx235 7ffb20e64d Merge branch 'main' into fix_properties 2023-07-21 16:38:59 -07:00
zhangyuxiang.ax 2898d9f593 fix bug when plaintable using table properties
Co-authored-by: wutonghua <wutonghua@ustc.edu>
2023-03-03 15:56:23 +08:00
+10 -1
View File
@@ -85,7 +85,16 @@ class PlainTableBuilder : public TableBuilder {
// Finish() call, returns the size of the final generated file.
uint64_t FileSize() const override;
TableProperties GetTableProperties() const override { return properties_; }
TableProperties GetTableProperties() const override {
TableProperties ret = properties_;
for (const auto& collector : table_properties_collectors_) {
for (const auto& prop : collector->GetReadableProperties()) {
ret.readable_properties.insert(prop);
}
collector->Finish(&ret.user_collected_properties).PermitUncheckedError();
}
return ret;
}
bool SaveIndexInFile() const { return store_index_in_file_; }