You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1716,19 +1720,17 @@ public void testDifferentColumns() throws KeyManagementException, NoSuchAlgorith
1716
1720
)
1717
1721
.orderBy(p.asc(p.col("id")));
1718
1722
1719
-
JacksonHandlejacksonHandle = newJacksonHandle();
1723
+
jacksonHandle = newJacksonHandle();
1720
1724
jacksonHandle.setMimetype("application/json");
1721
1725
1722
1726
rowMgr.resultDoc(plan3, jacksonHandle);
1723
1727
}
1724
1728
catch(Exceptionex) {
1725
1729
strIntersect.append(ex.getMessage());
1726
1730
System.out.println("Exception message is " + strIntersect.toString());
1727
-
}
1728
-
// Should have SQL-NUMBERCOLUMNS exceptions.
1729
-
assertTrue("Exceptions not found", strIntersect.toString().contains("SQL-NUMBERCOLUMNS"));
1730
-
assertTrue("Exceptions not found", strIntersect.toString().contains("Number of columns not matched: SELECTs to the left and right of INTERSECT do not have the same number of result columns"));
1731
-
1731
+
}
1732
+
JsonNodejsonBindingsNodes = jacksonHandle.get();
1733
+
assertTrue("Handle should be null from testDifferentColumns method ", jsonBindingsNodes==null);
1732
1734
//except with different number of columns
1733
1735
StringBuilderstrExcept = newStringBuilder();
1734
1736
try {
@@ -1742,7 +1744,7 @@ public void testDifferentColumns() throws KeyManagementException, NoSuchAlgorith
1742
1744
)
1743
1745
)
1744
1746
.orderBy(p.asc(p.col("id")));
1745
-
JacksonHandlejacksonHandle = newJacksonHandle();
1747
+
jacksonHandle = newJacksonHandle();
1746
1748
jacksonHandle.setMimetype("application/json");
1747
1749
1748
1750
rowMgr.resultDoc(plan4, jacksonHandle);
@@ -1751,9 +1753,8 @@ public void testDifferentColumns() throws KeyManagementException, NoSuchAlgorith
1751
1753
strExcept.append(ex.getMessage());
1752
1754
System.out.println("Exception message is " + strExcept.toString());
1753
1755
}
1754
-
// Should have SQL-NUMBERCOLUMNS exceptions.
1755
-
assertTrue("Exceptions not found", strExcept.toString().contains("SQL-NUMBERCOLUMNS"));
1756
-
assertTrue("Exceptions not found", strExcept.toString().contains("Number of columns not matched: SELECTs to the left and right of EXCEPT do not have the same number of result columns"));
1756
+
jsonBindingsNodes = jacksonHandle.get();
1757
+
assertEquals("Two nodes not returned from testFragmentId method ", 2, jsonBindingsNodes.size());
1757
1758
}
1758
1759
1759
1760
/*
@@ -1800,14 +1801,13 @@ public void testExplainPlan() throws KeyManagementException, NoSuchAlgorithmExce
assertTrue("Explain of plan incorrect", explainNodetxt.contains("\"node\":\"plan\""));
1809
-
assertTrue("Explain of plan incorrect", explainNodetxt.contains("\"node\":\"orderBy\", \"sortNeeded\":true, \"numSorted\":0"));
1810
-
assertTrue("Explain of plan incorrect", explainNodetxt.contains("\"columns\":[{\"node\":\"orderSpec\", \"descending\":true, \"column\":\"DetailName\""));
1810
+
assertTrue("Explain of plan incorrect", explainNodetxt.contains("\"node\":\"orderBy\", \"order\":\"order(2 DESC)\", \"numSorted\":0"));
0 commit comments