Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 51d0512

Browse files
Modify print functions
1 parent 42b9725 commit 51d0512

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/storage/layout.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ std::string Layout::GetColumnMapInfo() const {
214214
for (oid_t col_id = 0; col_id < num_columns_; col_id++) {
215215
tile_column_map[tile_id].push_back(col_id);
216216
}
217+
} else if (layout_type_ == COLUMN_STORE_OID) {
218+
// Column store always contains 1 column per tile.
219+
oid_t tile_col_id = 0;
220+
for (oid_t col_id = 0; col_id < num_columns_; col_id++) {
221+
tile_column_map[col_id].push_back(tile_col_id);
222+
}
217223
} else {
218224
for (auto column_info : column_layout_) {
219225
oid_t col_id = column_info.first;
@@ -243,7 +249,7 @@ const std::string Layout::GetInfo() const {
243249
os << peloton::GETINFO_DOUBLE_STAR << " Layout[#" << layout_id_ << "] "
244250
<< peloton::GETINFO_DOUBLE_STAR << std::endl;
245251
os << "Number of columns[" << num_columns_ << "] " << std::endl;
246-
252+
os << "LayoutType[" << LayoutTypeToString(layout_type_) << std::endl;
247253
os << "ColumnMap[ " << GetColumnMapInfo() << "] " << std::endl;
248254

249255
return peloton::StringUtil::Prefix(peloton::StringBoxUtil::Box(os.str()),

0 commit comments

Comments
 (0)