the-other-tim-brown commented on code in PR #13583:
URL: https://github.com/apache/hudi/pull/13583#discussion_r2222859155
##########
hudi-common/src/main/java/org/apache/hudi/metadata/MetadataPartitionType.java:
##########
@@ -202,7 +202,7 @@ public String getPartitionPath(HoodieTableMetaClient
metaClient, String indexNam
SECONDARY_INDEX(HoodieTableMetadataUtil.PARTITION_NAME_SECONDARY_INDEX_PREFIX,
"secondary-index-", 7) {
@Override
public boolean isMetadataPartitionEnabled(HoodieMetadataConfig
metadataConfig) {
- return metadataConfig.isSecondaryIndexEnabled();
+ return metadataConfig.isSecondaryIndexEnabled() &&
StringUtils.nonEmpty(metadataConfig.getSecondaryIndexColumn());
Review Comment:
I tried this and it caused failures in tests with spark sql writer path. In
those cases the metadataconfig did not have a column for the secondary index
listed but there was an existing index defined.
--
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]