mirror of https://github.com/citusdata/citus.git
Use empty partition column list instead of partition column list with NULL
parent
0757100833
commit
3e96d3a736
|
@ -1010,9 +1010,9 @@ InsertMetadataForCitusLocalTable(Oid citusLocalTableId, uint64 shardId)
|
|||
char replicationModel = REPLICATION_MODEL_STREAMING;
|
||||
|
||||
uint32 colocationId = INVALID_COLOCATION_ID;
|
||||
Var *distributionColumn = NULL;
|
||||
List *distributionColumnList = NIL;
|
||||
InsertIntoPgDistPartition(citusLocalTableId, distributionMethod,
|
||||
list_make1(distributionColumn), colocationId,
|
||||
distributionColumnList, colocationId,
|
||||
replicationModel);
|
||||
|
||||
/* set shard storage type according to relation type */
|
||||
|
|
|
@ -348,7 +348,6 @@ create_reference_table(PG_FUNCTION_ARGS)
|
|||
Oid relationId = PG_GETARG_OID(0);
|
||||
|
||||
char *colocateWithTableName = NULL;
|
||||
Var *distributionColumn = NULL;
|
||||
|
||||
bool viaDeprecatedAPI = false;
|
||||
|
||||
|
@ -384,7 +383,8 @@ create_reference_table(PG_FUNCTION_ARGS)
|
|||
errdetail("There are no active worker nodes.")));
|
||||
}
|
||||
|
||||
CreateDistributedTable(relationId, list_make1(distributionColumn), DISTRIBUTE_BY_NONE,
|
||||
List *distributionColumnList = NIL;
|
||||
CreateDistributedTable(relationId, distributionColumnList, DISTRIBUTE_BY_NONE,
|
||||
ShardCount, false, colocateWithTableName, viaDeprecatedAPI);
|
||||
PG_RETURN_VOID();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue