761417898 commented on code in PR #345:
URL: https://github.com/apache/tsfile/pull/345#discussion_r1919764826
##########
cpp/src/common/global.cc:
##########
@@ -46,6 +46,32 @@ void init_config_value() {
g_config_value_.time_compress_type_ = LZ4;
}
+extern TSEncoding get_value_encoder(TSDataType data_type) {
+ switch (data_type) {
+ case BOOLEAN:
+ return TSEncoding::RLE;
+ case INT32:
+ return TSEncoding::TS_2DIFF;
+ case INT64:
+ return TSEncoding::TS_2DIFF;
+ case FLOAT:
+ return TSEncoding::GORILLA;
+ case DOUBLE:
+ return TSEncoding::GORILLA;
+ case TEXT:
+ return TSEncoding::PLAIN;
+ case VECTOR:
+ break;
+ case NULL_TYPE:
+ break;
+ case INVALID_DATATYPE:
+ break;
+ default:
+ break;
+ }
+ return TSEncoding::PLAIN;
Review Comment:
fixed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]