kangpinghuang commented on a change in pull request #1341: Add plain page URL: https://github.com/apache/incubator-doris/pull/1341#discussion_r295869905
########## File path: be/src/olap/rowset/segment_v2/plain_page.h ########## @@ -0,0 +1,170 @@ +#pragma once + +#include "util/coding.h" +#include "util/faststring.h" +#include "olap/olap_common.h" +#include "olap/types.h" +#include "olap/rowset/segment_v2/page_builder.h" +#include "olap/rowset/segment_v2/page_decoder.h" +#include "olap/rowset/segment_v2/options.h" + +namespace doris { + +namespace segment_v2 { + +static const size_t plainPageHeaderSize = sizeof(uint32_t) * 2; + +template<FieldType Type> Review comment: Plain encoding is mainly for string type. I do not think it is necessary to realize it for numeric type. I think you should add support to string or binary type ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org