xushiyan commented on code in PR #8929:
URL: https://github.com/apache/hudi/pull/8929#discussion_r1299845069
##########
hudi-aws/src/main/java/org/apache/hudi/aws/sync/AWSGlueCatalogSyncClient.java:
##########
@@ -91,16 +92,23 @@ public class AWSGlueCatalogSyncClient extends
HoodieSyncClient {
private static final Logger LOG =
LoggerFactory.getLogger(AWSGlueCatalogSyncClient.class);
private static final int MAX_PARTITIONS_PER_REQUEST = 100;
private static final long BATCH_REQUEST_SLEEP_MILLIS = 1000L;
+ /**
+ * athena v2/v3 table property
+ * see https://docs.aws.amazon.com/athena/latest/ug/querying-hudi.html
+ */
+ private static final String ENABLE_MDT_LISTING =
"hudi.metadata-listing-enabled";
private final AWSGlue awsGlue;
private final String databaseName;
private final Boolean skipTableArchive;
+ private final String enableMetadataTable;
public AWSGlueCatalogSyncClient(HiveSyncConfig config) {
super(config);
this.awsGlue = AWSGlueClientBuilder.standard().build();
this.databaseName = config.getStringOrDefault(META_SYNC_DATABASE_NAME);
this.skipTableArchive =
config.getBooleanOrDefault(GlueCatalogSyncClientConfig.GLUE_SKIP_TABLE_ARCHIVE);
+ this.enableMetadataTable =
Boolean.toString(config.getBoolean(GLUE_METADATA_FILE_LISTING)).toUpperCase();
Review Comment:
we can avoid the extra Glue-specific config by reading value of
`hoodie.meta.sync.metadata_file_listing`, which derives the enable flag from
the master config `hoodie.metadata.enable`
--
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]