mirror of https://github.com/citusdata/citus.git
Stop using citus.binary_worker_copy_format
parent
5ac0d31e8b
commit
3cd9aa655a
|
@ -218,7 +218,7 @@ static void AssignDataFetchDependencies(List *taskList);
|
|||
static uint32 TaskListHighestTaskId(List *taskList);
|
||||
static List * MapTaskList(MapMergeJob *mapMergeJob, List *filterTaskList);
|
||||
static StringInfo CreateMapQueryString(MapMergeJob *mapMergeJob, Task *filterTask,
|
||||
uint32 partitionColumnIndex);
|
||||
uint32 partitionColumnIndex, bool useBinaryFormat);
|
||||
static char * PartitionResultNamePrefix(uint64 jobId, int32 taskId);
|
||||
static char * PartitionResultName(uint64 jobId, uint32 taskId, uint32 partitionId);
|
||||
static ShardInterval ** RangeIntervalArrayWithNullBucket(ShardInterval **intervalArray,
|
||||
|
@ -4177,8 +4177,8 @@ FragmentAlias(RangeTblEntry *rangeTableEntry, RangeTableFragment *fragment)
|
|||
List *resultNameList = FetchTaskResultNameList(mapOutputFetchTaskList);
|
||||
List *mapJobTargetList = mergeTask->mapJobTargetList;
|
||||
|
||||
/* TODO: determine binary safety automatically */
|
||||
bool useBinaryFormat = BinaryWorkerCopyFormat;
|
||||
/* determine whether all types have binary input/output functions */
|
||||
bool useBinaryFormat = CanUseBinaryCopyFormatForTargetList(mapJobTargetList);
|
||||
|
||||
/* generate the query on the intermediate result */
|
||||
Query *fragmentSetQuery = BuildReadIntermediateResultsArrayQuery(mapJobTargetList,
|
||||
|
@ -4347,11 +4347,15 @@ MapTaskList(MapMergeJob *mapMergeJob, List *filterTaskList)
|
|||
filterQuery->targetList);
|
||||
}
|
||||
|
||||
/* determine whether all types have binary input/output functions */
|
||||
bool useBinaryFormat = CanUseBinaryCopyFormatForTargetList(filterQuery->targetList);
|
||||
|
||||
foreach(filterTaskCell, filterTaskList)
|
||||
{
|
||||
Task *filterTask = (Task *) lfirst(filterTaskCell);
|
||||
StringInfo mapQueryString = CreateMapQueryString(mapMergeJob, filterTask,
|
||||
partitionColumnResNo);
|
||||
partitionColumnResNo,
|
||||
useBinaryFormat);
|
||||
|
||||
/* convert filter query task into map task */
|
||||
Task *mapTask = filterTask;
|
||||
|
@ -4398,7 +4402,7 @@ PartitionColumnIndex(Var *targetVar, List *targetList)
|
|||
*/
|
||||
static StringInfo
|
||||
CreateMapQueryString(MapMergeJob *mapMergeJob, Task *filterTask,
|
||||
uint32 partitionColumnIndex)
|
||||
uint32 partitionColumnIndex, bool useBinaryFormat)
|
||||
{
|
||||
uint64 jobId = filterTask->jobId;
|
||||
uint32 taskId = filterTask->taskId;
|
||||
|
@ -4449,9 +4453,6 @@ CreateMapQueryString(MapMergeJob *mapMergeJob, Task *filterTask,
|
|||
char *partitionMethodString = partitionType == RANGE_PARTITION_TYPE ?
|
||||
"range" : "hash";
|
||||
|
||||
/* TODO: determine binary safety automatically */
|
||||
bool useBinaryFormat = BinaryWorkerCopyFormat;
|
||||
|
||||
/*
|
||||
* Non-partition columns can easily contain NULL values, so we allow NULL
|
||||
* values in the column by which we re-partition. They will end up in the
|
||||
|
|
|
@ -603,7 +603,7 @@ RegisterCitusConfigVariables(void)
|
|||
false,
|
||||
#endif
|
||||
PGC_SIGHUP,
|
||||
GUC_STANDARD,
|
||||
GUC_NO_SHOW_ALL,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
DefineCustomBoolVariable(
|
||||
|
|
Loading…
Reference in New Issue