csun5285 commented on code in PR #62960:
URL: https://github.com/apache/doris/pull/62960#discussion_r3214343931
##########
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:
predicate 里都是按照计算层在计算,读出来的列读到columnxxx 里面就是计算层的column
--
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]