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;
|
char replicationModel = REPLICATION_MODEL_STREAMING;
|
||||||
|
|
||||||
uint32 colocationId = INVALID_COLOCATION_ID;
|
uint32 colocationId = INVALID_COLOCATION_ID;
|
||||||
Var *distributionColumn = NULL;
|
List *distributionColumnList = NIL;
|
||||||
InsertIntoPgDistPartition(citusLocalTableId, distributionMethod,
|
InsertIntoPgDistPartition(citusLocalTableId, distributionMethod,
|
||||||
list_make1(distributionColumn), colocationId,
|
distributionColumnList, colocationId,
|
||||||
replicationModel);
|
replicationModel);
|
||||||
|
|
||||||
/* set shard storage type according to relation type */
|
/* set shard storage type according to relation type */
|
||||||
|
|
|
@ -348,7 +348,6 @@ create_reference_table(PG_FUNCTION_ARGS)
|
||||||
Oid relationId = PG_GETARG_OID(0);
|
Oid relationId = PG_GETARG_OID(0);
|
||||||
|
|
||||||
char *colocateWithTableName = NULL;
|
char *colocateWithTableName = NULL;
|
||||||
Var *distributionColumn = NULL;
|
|
||||||
|
|
||||||
bool viaDeprecatedAPI = false;
|
bool viaDeprecatedAPI = false;
|
||||||
|
|
||||||
|
@ -384,7 +383,8 @@ create_reference_table(PG_FUNCTION_ARGS)
|
||||||
errdetail("There are no active worker nodes.")));
|
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);
|
ShardCount, false, colocateWithTableName, viaDeprecatedAPI);
|
||||||
PG_RETURN_VOID();
|
PG_RETURN_VOID();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue