small fixes

moonshot/custom-path
Nils Dijk 2021-12-06 12:45:01 +01:00
parent 912e80d4cc
commit a1ace74865
No known key found for this signature in database
GPG Key ID: CA1177EF9434F241
1 changed files with 2 additions and 2 deletions

View File

@ -875,7 +875,7 @@ ExtractPartitionValue(List *restrictionList, Var *partitionKey)
if (IsA(right, Var)) if (IsA(right, Var))
{ {
Var *rightVar = castNode(Var, left); Var *rightVar = castNode(Var, right);
if (rightVar->varno == partitionKey->varno && if (rightVar->varno == partitionKey->varno &&
rightVar->varattno == partitionKey->varattno) rightVar->varattno == partitionKey->varattno)
{ {
@ -1351,7 +1351,7 @@ OptimizeRepartitionInnerJoinPath(PlannerInfo *root, Path *originalPath)
/* now with the inner and outer swapped /* now with the inner and outer swapped
* +------------------------------------+ * +------------------------------------+
* | Collect | * | Collect |
* | - ColocationID: outer.ColocationID | * | - ColocationID: inner.ColocationID |
* +------------------------------------+ * +------------------------------------+
* | * |
* +---------+ * +---------+