aboutsummaryrefslogtreecommitdiffstats
path: root/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java
diff options
context:
space:
mode:
authorLester Solbakken <lesters@oath.com>2020-04-03 11:29:43 +0200
committerLester Solbakken <lesters@oath.com>2020-04-03 11:29:43 +0200
commit3789127189224d6cbd6f109b9a95f848869ea6cc (patch)
tree79cef74e6c61da059ed0eae79632fa001433ddc2 /model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java
parent706cb2d3b2d623318ba9c0a8db0e4355448af65a (diff)
for testing onlylesters/bert-testing
Diffstat (limited to 'model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java')
-rw-r--r--model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java
index adb54474812..3211a44fa68 100644
--- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java
+++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Join.java
@@ -82,6 +82,13 @@ public class Join extends IntermediateOperation {
bReducedFunction = new Reduce(b.function().get(), Reduce.Aggregator.sum, bDimensionsToReduce);
}
+ // retain order of inputs
+ if (a == inputs.get(1)) {
+ TensorFunction temp = bReducedFunction;
+ bReducedFunction = aReducedFunction;
+ aReducedFunction = temp;
+ }
+
return new com.yahoo.tensor.functions.Join(aReducedFunction, bReducedFunction, operator);
}