yiguolei commented on code in PR #62960:
URL: https://github.com/apache/doris/pull/62960#discussion_r3214274808
##########
be/src/core/type_limit.h:
##########
@@ -54,6 +56,24 @@ struct type_limit<DecimalV2Value> {
static DecimalV2Value max() { return DecimalV2Value::get_max_decimal(); }
};
+// std::numeric_limits is not specialised for these custom storage types, so
+// the generic type_limit would return T() = zero for both min and max,
+// silently breaking BKD half-bounded range queries.
+
+// DECIMALV2 storage. Largest representable DecimalV2 value (18 digits . 9
digits).
+template <>
+struct type_limit<decimal12_t> {
Review Comment:
我觉得这个定义可能是有问题的。 前面那些定义,都是关联到计算层的value上的,但是你加的这两个,似乎又是存储层的value
--
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]