snuyanzin commented on code in PR #23223:
URL: https://github.com/apache/flink/pull/23223#discussion_r1346511289
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/hints/batch/JoinHintTestBase.java:
##########
@@ -232,6 +233,21 @@ public void
testJoinHintWithMultiUnknownTableNamesMixedWithValidTableNames() {
verifyRelPlanByCustom(String.format(sql, getTestSingleJoinHint()));
}
+ @Test
+ public void testJoinHintWithConfigQueryHintsIgnore() {
+
util.tableEnv().getConfig().set(TableConfigOptions.TABLE_QUERY_HINTS_IGNORE,
true);
+
+ thrown().expect(ValidationException.class);
+ thrown().expectMessage(
+ String.format(
+ "The '%s' hint is allowed only when the config
option '%s' is set to true.",
Review Comment:
This I didn't get: above the config option is set to `true` and here we are
expecting exception saying that the hint is allowed only when config option is
set to `true`...
What should be done to have it working without exception then?
--
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]