Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions be/src/exprs/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ int Expr::compute_results_layout(
data[i].variable_length = true;
} else if (exprs[i]->type().type == TYPE_DECIMAL) {
data[i].byte_size = get_byte_size(exprs[i]->type().type);

// Although the current decimal has a fix-length, for the
// same value, it will work out different hash value due to the
// different memory represent if the variable_length here is set
// to false, so we have to keep it.
data[i].variable_length = true;
} else {
data[i].byte_size = get_byte_size(exprs[i]->type().type);
Expand Down