This is an automated email from the ASF dual-hosted git repository.
hyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/master by this push:
new 8f7c060 [CALCITE-3469] Typo in
SubstitutionVisitor#rowTypesAreEquivalent (Min Dai)
8f7c060 is described below
commit 8f7c060280ffd8e9351377dfafbb065466e7e1ca
Author: cndaimin <[email protected]>
AuthorDate: Fri Nov 1 15:27:11 2019 +0800
[CALCITE-3469] Typo in SubstitutionVisitor#rowTypesAreEquivalent (Min Dai)
Close #1555
---
core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java
b/core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java
index 0c4e22f..58f57da 100644
--- a/core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java
+++ b/core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java
@@ -612,7 +612,7 @@ public class SubstitutionVisitor {
return litmus.fail("Mismatch for column count: [{}]", Pair.of(rel0,
rel1));
}
for (Pair<RelDataTypeField, RelDataTypeField> pair
- : Pair.zip(rel0.rowType.getFieldList(), rel0.rowType.getFieldList())) {
+ : Pair.zip(rel0.rowType.getFieldList(), rel1.rowType.getFieldList())) {
if (!pair.left.getType().equals(pair.right.getType())) {
return litmus.fail("Mismatch for column type: [{}]", Pair.of(rel0,
rel1));
}