yiguolei commented on code in PR #62960:
URL: https://github.com/apache/doris/pull/62960#discussion_r3214685144


##########
be/src/storage/index/inverted/inverted_index_reader.cpp:
##########
@@ -58,6 +61,94 @@
 #include "storage/types.h"
 #include "util/faststring.h"
 
+namespace {
+
+// Sentinel values are sourced from the compute-layer `type_limit<CppType>` and
+// then projected onto the storage-layer POD via `PrimitiveTypeConvertor<PT>`.
+// Routing through the compute layer keeps the +/- infinity constants
+// single-sourced (e.g. DecimalV2 max lives only in 
DecimalV2Value::get_max_decimal,
+// DATE bounds only in VecDateTimeValue::datetime_min/max_value), so types like
+// decimal12_t and uint24_t — which have no std::numeric_limits specialisation 
—
+// no longer need their own type_limit<> entries.
+template <doris::PrimitiveType PT>
+static void bkd_encode_min(const doris::KeyCoder* coder, std::string* out) {

Review Comment:
   这种全局的方法,在外面最好套一个namespace 或者啥的,否则后期可能冲突了都不知道。即使当前只有你这一个cpp 
再用,未来可能也会不知道什么被common了



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to