mirror of https://github.com/citusdata/citus.git
Remove case block that is identical to its neighbor (#5472)
parent
77d948a595
commit
a3cc9b4e53
|
@ -4263,19 +4263,6 @@ GetPartitionTypeInputInfo(char *partitionKeyString, char partitionMethod,
|
||||||
{
|
{
|
||||||
case DISTRIBUTE_BY_APPEND:
|
case DISTRIBUTE_BY_APPEND:
|
||||||
case DISTRIBUTE_BY_RANGE:
|
case DISTRIBUTE_BY_RANGE:
|
||||||
{
|
|
||||||
Node *partitionNode = stringToNode(partitionKeyString);
|
|
||||||
Var *partitionColumn = (Var *) partitionNode;
|
|
||||||
Assert(IsA(partitionNode, Var));
|
|
||||||
|
|
||||||
GetIntervalTypeInfo(partitionMethod, partitionColumn,
|
|
||||||
intervalTypeId, intervalTypeMod);
|
|
||||||
|
|
||||||
*columnTypeId = partitionColumn->vartype;
|
|
||||||
*columnTypeMod = partitionColumn->vartypmod;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case DISTRIBUTE_BY_HASH:
|
case DISTRIBUTE_BY_HASH:
|
||||||
{
|
{
|
||||||
Node *partitionNode = stringToNode(partitionKeyString);
|
Node *partitionNode = stringToNode(partitionKeyString);
|
||||||
|
|
Loading…
Reference in New Issue