Skip to content

Commit

Permalink
Merge pull request #163 from yibantianxia/olap-kp-dev
Browse files Browse the repository at this point in the history
解决内存未初始化的问题
  • Loading branch information
liuwei-ck authored Sep 29, 2021
2 parents d02ad53 + 7af14ef commit 7a43204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_tmp_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ Field *create_tmp_field(THD *thd, TABLE *table, Item *item, Item::Type type,
DBUG_ASSERT(false);
break;
}
if (result != nullptr) {
if (result != nullptr && thd->parallel_exec) {
result->extra_length = item->pq_extra_len(group);
}
return result;
Expand Down

0 comments on commit 7a43204

Please sign in to comment.