zenoyang commented on code in PR #9167:
URL: https://github.com/apache/incubator-doris/pull/9167#discussion_r855934825


##########
be/src/vec/columns/column_dictionary.h:
##########
@@ -106,6 +107,7 @@ class ColumnDictionary final : public COWHelper<IColumn, 
ColumnDictionary<T>> {
     void clear() override {
         _codes.clear();
         _dict_code_converted = false;
+        _dict.clear_hash_values();

Review Comment:
   `hash_values` only needs to be calculated once.
   If `clear_hash_values` is called here, the hash of the dictionary values 
needs to be calculated once for each call to  `SegmentIterator::next_batch`.



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