caozhen1937 commented on a change in pull request #13669:
URL: https://github.com/apache/flink/pull/13669#discussion_r512452370



##########
File path: 
flink-connectors/flink-connector-jdbc/src/test/java/org/apache/flink/connector/jdbc/table/JdbcDynamicTableSourceITCase.java
##########
@@ -125,6 +125,45 @@ public void testJdbcSource() throws Exception {
                assertEquals(expected, result);
        }
 
+       @Test
+       public void testJdbcSourceWithLookupMaxRetries() throws Exception {
+               StreamExecutionEnvironment env = 
StreamExecutionEnvironment.getExecutionEnvironment();
+               EnvironmentSettings envSettings = 
EnvironmentSettings.newInstance()
+                       .useBlinkPlanner()
+                       .inStreamingMode()
+                       .build();
+               StreamTableEnvironment tEnv = 
StreamTableEnvironment.create(env, envSettings);
+
+               tEnv.executeSql(
+                       "CREATE TABLE " + INPUT_TABLE + "(" +
+                               "id BIGINT," +
+                               "timestamp6_col TIMESTAMP(6)," +
+                               "timestamp9_col TIMESTAMP(9)," +
+                               "time_col TIME," +
+                               "real_col FLOAT," +
+                               "double_col DOUBLE," +
+                               "decimal_col DECIMAL(10, 4)" +
+                               ") WITH (" +
+                               "  'connector'='jdbc'," +
+                               "  'url'='" + DB_URL + "'," +
+                               "  'lookup.max-retries'='0'," +
+                               "  'table-name'='" + INPUT_TABLE + "'" +
+                               ")"
+               );
+
+               Iterator<Row> collected = tEnv.executeSql("SELECT id FROM " + 
INPUT_TABLE).collect();

Review comment:
       Thank you.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to