zstan commented on code in PR #2101:
URL: https://github.com/apache/ignite-3/pull/2101#discussion_r1209003957
##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/planner/HashIndexPlannerTest.java:
##########
@@ -88,6 +90,27 @@ public void hashIndexIsNotAppliedForRangeCondition() throws
Exception {
String invalidPlanMsg = "Invalid plan:\n" + RelOptUtil.toString(phys);
assertThat(invalidPlanMsg, scan, notNullValue());
+
+ // Can`t use hash index scan with range.
+ String sqlGT = "SELECT /*+
DISABLE_RULE('LogicalTableScanConverterRule')*/ id FROM test_tbl WHERE val >=
10";
+
+ IgniteTestUtils.assertThrowsWithCause(() -> physicalPlan(sqlGT,
schema), CannotPlanException.class,
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]