struct TKeysType { enum type { PRIMARY_KEYS = 0, DUP_KEYS = 1, UNIQUE_KEYS = 2, AGG_KEYS = 3 }; }; enum KeysType { DUP_KEYS = 0, UNIQUE_KEYS = 1, AGG_KEYS = 2, PRIMARY_KEYS = 10 }; What I'm doing: Fix the bug of SpillMemTableSink checking keys type What type ...
case KeysType::DUP_KEYS: return "DUP"; case KeysType::UNIQUE_KEYS: return "UNIQUE"; case KeysType::AGG_KEYS: return "AGG"; case KeysType::PRIMARY_KEYS: return "PRIMARY"; default: return "UNKNOWN"; } } Status SchemaBeTabletsScanner::fill_chunk(ChunkPtr* chunk) { const auto& slot_id...
| sales_records | DUP_KEYS | record_id | INT | Yes | true | NULL | | | | | seller_id | INT | Yes | true | NULL | | | | | store_id | INT | Yes | true | NULL | | | | | sale_date | DATE | Yes | false | NULL | NONE | | | | sale_amt | BIGINT | Yes | ...