You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "yiguolei (via GitHub)" <gi...@apache.org> on 2023/06/30 01:16:22 UTC

[GitHub] [doris] yiguolei commented on a diff in pull request #21334: [FIX](datatype) Implement hash func with array/map/struct type

yiguolei commented on code in PR #21334:
URL: https://github.com/apache/doris/pull/21334#discussion_r1247304348


##########
be/src/vec/sink/vdata_stream_sender.cpp:
##########
@@ -629,7 +630,8 @@ Status VDataStreamSender::send(RuntimeState* state, Block* block, bool eos) {
                 std::vector<SipHash> siphashs(rows);
                 // result[j] means column index, i means rows index
                 for (int j = 0; j < result_size; ++j) {
-                    block->get_by_position(result[j]).column->update_hashes_with_value(siphashs);
+                    unpack_if_const(block->get_by_position(result[j]).column)

Review Comment:
   add some comment here, to explain whey do we need uppack const 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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org