!1585 解决bucketMap数组与NULL判断永远为false的问题

Merge pull request !1585 from 陈栋/issue1
This commit is contained in:
opengauss-bot 2022-03-14 06:15:05 +00:00 committed by Gitee
commit 9c8611ff49
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ void standard_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, long co
if (send_tuples)
(*dest->rStartup)(dest, operation, queryDesc->tupDesc);
if (queryDesc->plannedstmt->bucketMap != NULL) {
if (queryDesc->plannedstmt->bucketMap[0] != NULL) {
u_sess->exec_cxt.global_bucket_map = queryDesc->plannedstmt->bucketMap[0];
u_sess->exec_cxt.global_bucket_cnt = queryDesc->plannedstmt->bucketCnt[0];
} else {