lirui-apache commented on a change in pull request #13963:
URL: https://github.com/apache/flink/pull/13963#discussion_r519256019



##########
File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveSource.java
##########
@@ -46,29 +58,98 @@
 
        private static final long serialVersionUID = 1L;
 
+       private final JobConfWrapper jobConfWrapper;
+       private final List<String> partitionKeys;
+       private final ContinuousPartitionFetcher<Partition, ?> fetcher;
+       private final HiveTableSource.HiveContinuousPartitionFetcherContext<?> 
fetcherContext;
+       private final ObjectPath tablePath;
+
        HiveSource(
                        JobConf jobConf,
+                       ObjectPath tablePath,
                        CatalogTable catalogTable,
                        List<HiveTablePartition> partitions,
                        @Nullable Long limit,
                        String hiveVersion,
                        boolean useMapRedReader,
-                       boolean isStreamingSource,
+                       @Nullable ContinuousEnumerationSettings 
continuousEnumerationSettings,

Review comment:
       I added the builder, but the builder constructor still takes quite a few 
parameters. That's because the BulkFormat needs to be created in the 
constructor. And since BulkFormat is determined during construction, it makes 
no sense to allow modifying `tablePath` or `partitions` later through the 
builder.




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