You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "hudi-bot (via GitHub)" <gi...@apache.org> on 2025/11/30 10:13:35 UTC
[I] Support secondary index to be created on multiple fields [hudi]
hudi-bot opened a new issue, #16514:
URL: https://github.com/apache/hudi/issues/16514
Users should be able to create secondary index on multiple fields just like record keys as follows:
create index idx_city on $tableName using secondary_index(city,state)
## JIRA info
- Link: https://issues.apache.org/jira/browse/HUDI-7836
- Type: Improvement
- Epic: https://issues.apache.org/jira/browse/HUDI-3907
- Fix version(s):
- 1.1.0
--
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-unsubscribe@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Support secondary index to be created on multiple fields [hudi]
Posted by "rangareddy (via GitHub)" <gi...@apache.org>.
rangareddy commented on issue #16514:
URL: https://github.com/apache/hudi/issues/16514#issuecomment-5434678077
This issue was reviewed as part of the JIRA-migrated backlog triage (HUDI-7836).
**Findings: not done - and this looks like a duplicate.**
The blocking guard is a single line, `hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/HoodieIndexUtils.java:661`:
```java
checkArgument(columns.size() == 1, "Only one column can be indexed for functional or secondary index.");
```
with `:687` then taking `sourceFields.get(0)` on the strength of it, so relaxing the guard alone is not sufficient.
**#16652 (HUDI-8302, "Handle multiple column secondary indexes") asks for the same thing** and is blocked by the same guard. Recommend merging the two rather than working them separately.
--
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-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org