BiteTheDDDDt commented on code in PR #26191:
URL: https://github.com/apache/doris/pull/26191#discussion_r1378875692


##########
be/src/olap/comparison_predicate.h:
##########
@@ -107,8 +120,22 @@ class ComparisonPredicateBase : public ColumnPredicate {
         }
 
         roaring::Roaring roaring;
-        RETURN_IF_ERROR(iterator->read_from_inverted_index(column_name, 
&_value, query_type,
-                                                           num_rows, 
&roaring));
+        if constexpr (Type == PrimitiveType::TYPE_DATE) {
+            uint24_t date = _value.to_olap_date();

Review Comment:
   Maybe we can uniformly implement a function for converting CppType and 
StorageType to each other.



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