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
Copy file name to clipboardexpand all lines: connectors/translator-jdbc/src/test/java/org/teiid/translator/jdbc/sqlserver/TestSqlServerConversionVisitor.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ public void testDateFunctions() throws Exception {
203
203
204
204
@TestpublicvoidtestWith() throwsException {
205
205
Stringinput = "with x as (select intkey from bqt1.smalla) select intkey from x limit 100"; //$NON-NLS-1$
206
-
Stringoutput = "WITH x AS (SELECT SmallA.IntKey FROM SmallA) SELECT TOP 100 g_0.intkey AS c_0 FROM x g_0"; //$NON-NLS-1$
206
+
Stringoutput = "WITH x (IntKey) AS (SELECT SmallA.IntKey FROM SmallA) SELECT TOP 100 g_0.intkey AS c_0 FROM x g_0"; //$NON-NLS-1$
dataManager.addData("WITH a (x, y, z) AS (SELECT g_0.e1, g_0.e2, g_0.e3 FROM g1 AS g_0) SELECT COUNT(g_0.x) FROM a AS g_0, a AS g_1", expected);
96
+
97
+
ProcessorPlanplan = TestOptimizer.helpPlan(sql, RealMetadataFactory.example1Cached(), null, capFinder, newString[] {"WITH a (x, y, z) AS (SELECT g_0.e1, g_0.e2, g_0.e3 FROM pm1.g1 AS g_0) SELECT COUNT(g_0.x) FROM a AS g_0, a AS g_1"}, ComparisonMode.EXACT_COMMAND_STRING);
0 commit comments