mirror of https://github.com/citusdata/citus.git
Remove unused parameter from VarConstOpExprClause (#4348)
parent
850b292886
commit
180195b445
|
@ -254,8 +254,8 @@ static bool IsValidPartitionKeyRestriction(OpExpr *opClause);
|
||||||
static void AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context,
|
static void AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context,
|
||||||
OpExpr *opClause, Var *varClause,
|
OpExpr *opClause, Var *varClause,
|
||||||
Const *constantClause);
|
Const *constantClause);
|
||||||
static bool VarConstOpExprClause(OpExpr *opClause, Var *partitionColumn,
|
static bool VarConstOpExprClause(OpExpr *opClause, Var **varClause,
|
||||||
Var **varClause, Const **constantClause);
|
Const **constantClause);
|
||||||
static void AddSAOPartitionKeyRestrictionToInstance(ClauseWalkerContext *context,
|
static void AddSAOPartitionKeyRestrictionToInstance(ClauseWalkerContext *context,
|
||||||
ScalarArrayOpExpr *
|
ScalarArrayOpExpr *
|
||||||
arrayOperatorExpression);
|
arrayOperatorExpression);
|
||||||
|
@ -537,7 +537,7 @@ IsValidConditionNode(Node *node, Var *partitionColumn)
|
||||||
{
|
{
|
||||||
OpExpr *opClause = (OpExpr *) node;
|
OpExpr *opClause = (OpExpr *) node;
|
||||||
Var *varClause = NULL;
|
Var *varClause = NULL;
|
||||||
if (VarConstOpExprClause(opClause, partitionColumn, &varClause, NULL))
|
if (VarConstOpExprClause(opClause, &varClause, NULL))
|
||||||
{
|
{
|
||||||
if (equal(varClause, partitionColumn))
|
if (equal(varClause, partitionColumn))
|
||||||
{
|
{
|
||||||
|
@ -824,8 +824,7 @@ PrunableExpressionsWalker(PruningTreeNode *node, ClauseWalkerContext *context)
|
||||||
prune->addedToPruningInstances = true;
|
prune->addedToPruningInstances = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VarConstOpExprClause(opClause, context->partitionColumn, &varClause,
|
if (VarConstOpExprClause(opClause, &varClause, &constantClause))
|
||||||
&constantClause))
|
|
||||||
{
|
{
|
||||||
if (equal(varClause, context->partitionColumn))
|
if (equal(varClause, context->partitionColumn))
|
||||||
{
|
{
|
||||||
|
@ -898,8 +897,7 @@ PrunableExpressionsWalker(PruningTreeNode *node, ClauseWalkerContext *context)
|
||||||
* Also obtaining the var with constant when valid.
|
* Also obtaining the var with constant when valid.
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
VarConstOpExprClause(OpExpr *opClause, Var *partitionColumn, Var **varClause,
|
VarConstOpExprClause(OpExpr *opClause, Var **varClause, Const **constantClause)
|
||||||
Const **constantClause)
|
|
||||||
{
|
{
|
||||||
Var *foundVarClause = NULL;
|
Var *foundVarClause = NULL;
|
||||||
Const *foundConstantClause = NULL;
|
Const *foundConstantClause = NULL;
|
||||||
|
|
Loading…
Reference in New Issue