the-other-tim-brown commented on code in PR #9482: URL: https://github.com/apache/hudi/pull/9482#discussion_r1306318476
########## hudi-gcp/src/main/java/org/apache/hudi/gcp/bigquery/BigQuerySyncTool.java: ########## @@ -52,34 +57,55 @@ public class BigQuerySyncTool extends HoodieSyncTool { private static final Logger LOG = LoggerFactory.getLogger(BigQuerySyncTool.class); - public final BigQuerySyncConfig config; - public final String tableName; - public final String manifestTableName; - public final String versionsTableName; - public final String snapshotViewName; + private final BigQuerySyncConfig config; + private final String tableName; + private final String manifestTableName; + private final String versionsTableName; + private final String snapshotViewName; + private final ManifestFileWriter manifestFileWriter; + private final HoodieBigQuerySyncClient bqSyncClient; + private final HoodieTableMetaClient metaClient; + private final BigQuerySchemaResolver bqSchemaResolver; public BigQuerySyncTool(Properties props) { - super(props); + // will build file writer, client, etc. from configs + this(props, null, null, null, null); + } + + @VisibleForTesting // allows us to pass in mocks for the writer and client Review Comment: @nsivabalan i will defer to you, can you please provide a way to get the equivalent mocking ability under the constraint that the meta sync is required to have a single arg constructor? I don't have as much Hudi experience but was just following the general java dependency injection practice. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org