Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public void testNearQueryFromLexicons() throws KeyManagementException, NoSuchAlg
ModifyPlan plan2 = p.fromLexicons(index2, "myTeam", p.fragmentIdCol("fragId2"));

ModifyPlan output = plan1.joinInner(plan2)
.where(p.eq(p.viewCol("myCity", "city"), p.col("cityName")));
.where(p.eq(p.viewCol("myCity", "city"), p.col("cityName")))
.orderBy(p.asc(p.col("date")));

JacksonHandle jacksonHandle = new JacksonHandle();
jacksonHandle.setMimetype("application/json");
Expand Down Expand Up @@ -356,7 +357,8 @@ public void testCtsQueriesWithOptions()

ModifyPlan output = plan1.where(p.cts.jsonPropertyWordQuery("city", "*k", "wildcarded", "case-sensitive"))
.joinInner(plan2)
.where(p.eq(p.viewCol("myCity", "city"), p.col("cityName")));
.where(p.eq(p.viewCol("myCity", "city"), p.col("cityName")))
.orderBy(p.asc(p.col("date")));

JacksonHandle jacksonHandle = new JacksonHandle();
jacksonHandle.setMimetype("application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1206,8 +1206,6 @@ public void testRestrictedXPathPredicateMath() {
JacksonHandle jacksonHandle = new JacksonHandle();
jacksonHandle.setMimetype("application/json");

System.out.println("PLAN: " + plan.exportAs(ObjectNode.class).toPrettyString());

rowMgr.resultDoc(plan, jacksonHandle);
JsonNode rows = jacksonHandle.get().path("rows");
assertEquals(1, rows.size(), "Expected only the New Jersey row, which has a popularity of 2: " + rows.toPrettyString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,8 @@ public void testJoinInnerDocOnJson()
p.col("val"),
p.col("uri"),
p.as("nodes", p.xpath("doc", "/doc/distance/@direction")))
.where(p.isDefined(p.col("nodes")));
.where(p.isDefined(p.col("nodes")))
.orderBy(p.asc("id"));

System.out.println(output17.exportAs(JsonNode.class).toPrettyString());

Expand Down Expand Up @@ -653,7 +654,8 @@ public void testJoinInnerDocOnJson()
p.col("val"),
p.col("uri"),
p.as("nodes", p.xpath("doc", "/doc/location/latLonPair/(lat|long)/text()")))
.where(p.isDefined(p.col("nodes")));
.where(p.isDefined(p.col("nodes")))
.orderBy(p.asc("id"));

JacksonHandle jacksonHandle18 = new JacksonHandle();
jacksonHandle18.setMimetype("application/json");
Expand Down Expand Up @@ -712,7 +714,8 @@ public void testJoinInnerDocOnJson()
p.col("val"),
p.col("uri"),
p.as("nodes", p.xpath("doc", "/doc/city")))
.where(p.isDefined(p.col("nodes")));
.where(p.isDefined(p.col("nodes")))
.orderBy(p.asc("id"));
JacksonHandle jacksonHandle15 = new JacksonHandle();
jacksonHandle15.setMimetype("application/json");
rowMgr.resultDoc(output15, jacksonHandle15);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ public void testGroupByCountAndSum()
ModifyPlan team_planSum = p.fromTriples(team_planSumSeq);

ModifyPlan outputSum = player_planSum.joinInner(team_planSum)
.groupBy(null, p.sum(p.col("SumAll"), playerEffCol));
.groupBy(null, p.sum(p.col("SumAll"), playerEffCol))
.orderBy(p.desc(p.col("SumAll")));
jacksonHandle = new JacksonHandle();
jacksonHandle.setMimetype("application/json");

Expand Down