From 852263d74f9d64ad2daf904fb96b7af2bcc96d08 Mon Sep 17 00:00:00 2001 From: obdev Date: Tue, 8 Oct 2024 12:46:10 +0000 Subject: [PATCH] add placeholder for DELAYED_TRANSFORM_MAJOR --- .../ob_column_oriented_sstable.cpp | 3 +- .../column_store/ob_column_oriented_sstable.h | 29 ++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/storage/column_store/ob_column_oriented_sstable.cpp b/src/storage/column_store/ob_column_oriented_sstable.cpp index 1c6614a0d..504776529 100644 --- a/src/storage/column_store/ob_column_oriented_sstable.cpp +++ b/src/storage/column_store/ob_column_oriented_sstable.cpp @@ -222,7 +222,8 @@ const char* ObCOMajorSSTableStatusStr[] = { "COL_ONLY_ALL", "PURE_COL", "PURE_COL_ONLY_ALL", - "COL_REPLICA_MAJOR" + "COL_REPLICA_MAJOR", + "DELAYED_TRANSFORM_MAJOR" }; const char* co_major_sstable_status_to_str(const ObCOMajorSSTableStatus& major_sstable_status) diff --git a/src/storage/column_store/ob_column_oriented_sstable.h b/src/storage/column_store/ob_column_oriented_sstable.h index c53ad52dd..99eabd95d 100644 --- a/src/storage/column_store/ob_column_oriented_sstable.h +++ b/src/storage/column_store/ob_column_oriented_sstable.h @@ -107,22 +107,25 @@ enum ObCOMajorSSTableStatus: uint8_t { PURE_COL = 3, // rowkey cg + normal cg PURE_COL_ONLY_ALL = 4, // all cg only (schema do not have all cg) COL_REPLICA_MAJOR = 5, // temp status, row store major from F/R replica for column store replica + DELAYED_TRANSFORM_MAJOR = 6, // row store sstable under column store schema MAX_CO_MAJOR_SSTABLE_STATUS }; /* - +-----------------+---------------+---------------+-------+ - | status | schema | last_major |IS_SAME| - +-----------------+---------------+---------------+-------+ - | COL_WITH_ALL | ALL+EACH | ALL+EACH | YES | - +-----------------+---------------+---------------+-------+ - | COL_ONLY_ALL | ALL+EACH | ALL | NO | - +-----------------+---------------+---------------+-------+ - | PURE_COL | EACH | EACH | YES | - +-----------------+---------------+---------------+-------+ - |PURE_COL_ONLY_ALL| EACH | ALL | NO | - +-----------------+---------------+---------------+-------+ - |COL_REPLICA_MAJOR| ROW STORE | ROW STORE | YES | - +-----------------+---------------+---------------+-------+ + +-----------------------+---------------+---------------+-------+ + | status | schema | last_major |IS_SAME| + +-----------------------+---------------+---------------+-------+ + | COL_WITH_ALL | ALL+EACH | ALL+EACH | YES | + +-----------------------+---------------+---------------+-------+ + | COL_ONLY_ALL | ALL+EACH | ALL | NO | + +-----------------------+---------------+---------------+-------+ + | PURE_COL | EACH | EACH | YES | + +-----------------------+---------------+---------------+-------+ + | PURE_COL_ONLY_ALL | EACH | ALL | NO | + +-----------------------+---------------+---------------+-------+ + | COL_REPLICA_MAJOR | ROW STORE | ROW STORE | YES | + +-----------------------+---------------+---------------+-------+ + |DELAYED_TRANSFORM_MAJOR| ALL+EACH/EACH | ROW STORE | NO | + +-----------------------+---------------+---------------+-------+ */ inline bool is_valid_co_major_sstable_status(const ObCOMajorSSTableStatus& major_sstable_status) {