MCPcopy Create free account
hub / github.com/apache/cloudberry / createRandomPartitionedPolicy

Function createRandomPartitionedPolicy

src/backend/cdb/cdbcat.c:119–123  ·  view source on GitHub ↗

* createRandomPartitionedPolicy -- Create a policy with randomly * partitioned distribution */

Source from the content-addressed store, hash-verified

117 * partitioned distribution
118 */
119GpPolicy *
120createRandomPartitionedPolicy(int numsegments)
121{
122 return makeGpPolicy(POLICYTYPE_PARTITIONED, 0, numsegments);
123}
124
125/*
126 * createHashPartitionedPolicy-- Create a policy with data

Callers 8

DefineRelationFunction · 0.85
ATExecAlterColumnTypeFunction · 0.85
ATExecSetDistributedByFunction · 0.85
GpPolicyFetchFunction · 0.85
cdbllize_adjust_top_pathFunction · 0.85
build_simple_relFunction · 0.85

Calls 1

makeGpPolicyFunction · 0.85

Tested by

no test coverage detected