yiguolei commented on code in PR #62960:
URL: https://github.com/apache/doris/pull/62960#discussion_r3214292383
##########
be/src/storage/predicate/in_list_predicate.h:
##########
@@ -161,23 +162,20 @@ class InListPredicateBase final : public ColumnPredicate {
roaring::Roaring indices;
HybridSetBase::IteratorBase* iter = _values->begin();
while (iter->has_next()) {
- std::unique_ptr<InvertedIndexQueryParamFactory> query_param =
nullptr;
+ Field field_value;
if constexpr (is_string_type(Type)) {
- // get_value() returns StringRef*, not std::string*
+ // HybridSet's iter->get_value() yields StringRef*, not
std::string*.
const auto* ref = (const StringRef*)(iter->get_value());
- T str(ref->data, ref->size);
-
RETURN_IF_ERROR(InvertedIndexQueryParamFactory::create_query_value<Type>(
- &str, query_param));
+ field_value = Field::create_field<Type>(std::string(ref->data,
ref->size));
} else {
const T* value = (const T*)(iter->get_value());
-
RETURN_IF_ERROR(InvertedIndexQueryParamFactory::create_query_value<Type>(
- value, query_param));
+ field_value = Field::create_field<Type>(*value);
Review Comment:
in list predicate 的时候,只有string 类型不是计算层的类型吗? 其他的,比如date 都是计算层类型吗?
或者我们更广泛的说,predicate 里,运算的时候,都是按照计算层在计算吗?
比如date 类型,string的padding 之类的
--
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]