mirror of https://github.com/citusdata/citus.git
Merge pull request #591 from citusdata/fix_compile_time_warning_in_multi_logical_optimizer
Eliminate compile time warnings in multi_logical_optimizer.cpull/586/head
commit
bbf13be508
|
@ -2871,7 +2871,8 @@ TrackerHashCleanupJob(HTAB *taskTrackerHash, Task *jobCleanupTask)
|
|||
{
|
||||
ereport(WARNING, (errmsg("could not receive response for cleanup "
|
||||
"query status for job " UINT64_FORMAT " "
|
||||
"on node \"%s:%u\" with status %d", jobId,
|
||||
"on node \"%s:%u\" with status %d",
|
||||
jobId,
|
||||
nodeName, nodePort, (int) queryStatus),
|
||||
errhint("Manually clean job resources on node "
|
||||
"\"%s:%u\" by running \"%s\" ", nodeName,
|
||||
|
@ -2887,7 +2888,8 @@ TrackerHashCleanupJob(HTAB *taskTrackerHash, Task *jobCleanupTask)
|
|||
{
|
||||
ereport(WARNING, (errmsg("could not receive response for cleanup query "
|
||||
"result for job " UINT64_FORMAT " on node "
|
||||
"\"%s:%u\" with status %d", jobId, nodeName,
|
||||
"\"%s:%u\" with status %d",
|
||||
jobId, nodeName,
|
||||
nodePort, (int) resultStatus),
|
||||
errhint("Manually clean job resources on node "
|
||||
"\"%s:%u\" by running \"%s\" ", nodeName,
|
||||
|
|
|
@ -1705,9 +1705,10 @@ WorkerExtendedOpNode(MultiExtendedOp *originalOpNode)
|
|||
AttrNumber targetProjectionNumber = 1;
|
||||
WorkerAggregateWalkerContext *walkerContext =
|
||||
palloc0(sizeof(WorkerAggregateWalkerContext));
|
||||
Index nextSortGroupRefIndex = 0;
|
||||
|
||||
walkerContext->repartitionSubquery = false;
|
||||
walkerContext->expressionList = NIL;
|
||||
Index nextSortGroupRefIndex = 0;
|
||||
|
||||
if (CitusIsA(parentNode, MultiTable) && CitusIsA(childNode, MultiCollect))
|
||||
{
|
||||
|
@ -2501,6 +2502,7 @@ TablePartitioningSupportsDistinct(List *tableNodeList, MultiExtendedOp *opNode,
|
|||
Oid relationId = tableNode->relationId;
|
||||
bool tableDistinctSupported = false;
|
||||
char partitionMethod = 0;
|
||||
List *shardList = NIL;
|
||||
|
||||
if (relationId == SUBQUERY_RELATION_ID)
|
||||
{
|
||||
|
@ -2508,7 +2510,7 @@ TablePartitioningSupportsDistinct(List *tableNodeList, MultiExtendedOp *opNode,
|
|||
}
|
||||
|
||||
/* if table has one shard, task results don't overlap */
|
||||
List *shardList = LoadShardList(relationId);
|
||||
shardList = LoadShardList(relationId);
|
||||
if (list_length(shardList) == 1)
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue