GitHub user cshuo added a comment to the discussion: Why does Secondary Index 
not offer a partitioned variant like Record Level Index?

Thanks for the detailed reproduction. There are already two open requests for 
this: [apache/hudi#16706](https://github.com/apache/hudi/issues/16706) 
(HUDI-8446) and 
[apache/hudi#17308](https://github.com/apache/hudi/issues/17308) (HUDI-8517). 
The latter explicitly proposes carrying partition information and adjusting 
delete handling.

1. **Why global-only?** The current implementation assumes globally unique 
record keys and resolves SI matches through global RLI without partition 
context. This explains the limitation, though not necessarily the original 
design rationale.

2. **Limitation or bug?** Your example exposes that limitation: identical 
secondary values and record keys across partitions produce the same SI key. The 
creation check does not distinguish global from partitioned RLI, so an upfront 
compatibility error would be preferable to failing during HFile writing.

3. **Partitioned SI?** The historical requests establish interest in non-global 
SI, but partition-scoped file groups for lock isolation go further. Adding 
partition information addresses record identity; isolating SI file groups by 
data partition would also prevent writers on different data partitions from 
targeting the same SI file group.

GitHub link: 
https://github.com/apache/hudi/discussions/20902#discussioncomment-19877095

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to