the-other-tim-brown commented on code in PR #13583:
URL: https://github.com/apache/hudi/pull/13583#discussion_r2224133649
##########
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:
The issue is likely on the spark sql path, not the test. The test sets up
the index in spark-sql so we likely need to pipe through the existing indexes
to the metadata config. I agree that will be better so I'll take a look when I
get some time.
--
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]