openinx commented on a change in pull request #1936:
URL: https://github.com/apache/iceberg/pull/1936#discussion_r561506300



##########
File path: 
flink/src/test/java/org/apache/iceberg/flink/TestFlinkTableSource.java
##########
@@ -685,4 +782,60 @@ public void testSqlParseError() {
     AssertHelpers.assertThrows("The NaN is not supported by flink now. ",
         NumberFormatException.class, () -> sql(sqlParseErrorLTE));
   }
+
+  /**
+   * The sql can be executed in both streaming and batch mode, in order to get 
the parallelism, we convert the flink
+   * Table to flink DataStream, so we only use streaming mode here.
+   *
+   * @throws TableNotExistException table not exist exception
+   */
+  @Test
+  public void testInferedParallelism() throws TableNotExistException {
+    Assume.assumeTrue("The execute mode should  be streaming mode", 
isStreamingJob);

Review comment:
       The `isStreaming`  indicate whether the flink source is a streaming 
source (In our mind) ,  not say it's a streaming job or batch job.  The hive 
table source also has the similar configure key : 
   
   ```java
       public static final ConfigOption<Boolean> STREAMING_SOURCE_ENABLE =
               key("streaming-source.enable")
                       .booleanType()
                       .defaultValue(false)
                       .withDescription(
                               "Enable streaming source or not.\n"
                                       + " NOTES: Please make sure that each 
partition/file should be written"
                                       + " atomically, otherwise the reader may 
get incomplete data.");
   ```
   
   If we think this iceberg configure key is not very clear,  I think we could 
propose another separate PR to align with hive configure key.  Let's focus on 
this parallelism issue here,  what do you think ? 




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to