Skip to content

Commit 77f5437

Browse files
committed
revert changes in test
1 parent a5a2571 commit 77f5437

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/planner/IndexSearchBoundsPlannerTest.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -339,18 +339,10 @@ public void testBoundsTypeConversion() throws Exception {
339339
);
340340

341341
// Implicit cast of 2 to VARCHAR.
342-
// TODO https://issues.apache.org/jira/browse/IGNITE-27391
343-
assertPlan("SELECT * FROM TEST WHERE C1 = 1 AND C2 IN (2::VARCHAR, '3')",
344-
List.of(publicSchema), nodeOrAnyChild(isInstanceOf(IgniteIndexScan.class)
345-
.and(scan -> {
346-
boolean boundsMatch = matchBounds(scan.searchBounds(), exact(1));
347-
String condition = scan.condition() != null ? scan.condition().toString() : null;
348-
String expected =
349-
"AND(=($t0, 1), OR(=(CAST($t1):VARCHAR CHARACTER SET \"UTF-8\", _UTF-8'2'), =($t1, _UTF-8'3')))";
350-
boolean conditionMatch = Objects.equals(condition, expected);
351-
return boundsMatch && conditionMatch;
352-
})), List.of(),
353-
"LogicalTableScanConverterRule", "UnionConverterRule");
342+
assertBounds("SELECT * FROM TEST WHERE C1 = 1 AND C2 IN (2::VARCHAR, '3')",
343+
exact(1),
344+
multi(exact("2"), exact("3"))
345+
);
354346
}
355347

356348
/** Tests bounds with dynamic parameters. */

0 commit comments

Comments
 (0)