suryaprasanna opened a new pull request, #17940: URL: https://github.com/apache/hudi/pull/17940
### Describe the issue this Pull Request addresses This PR adds a new CLI command to query record index information from the metadata table, allowing users to look up the global file location (partition path, file ID, and instant time) for a given record key. ### Summary and Changelog Users can now use the `metadata lookup-record-index` command in Hudi CLI to fetch record index entry details including partitionPath, fileId, and instantTimestamp for a given record key. **Changes:** - Added `getRecordIndexInfo()` method in `MetadataCommand.java` to implement the new CLI command - Added `testGetRecordIndexInfo()` test case in `TestMetadataCommand.java` to verify the new functionality - Command validates that metadata table and record index partition are enabled before lookup ### Impact This is a new CLI command with no impact on existing functionality. It provides users with a convenient way to debug and inspect record index entries through the Hudi CLI. ### Risk Level **Low** - This is a new read-only CLI command that does not modify any data or change existing behavior. It only adds new functionality for querying metadata table. ### Documentation Update Documentation should be updated to include the new `metadata lookup-record-index` CLI command with usage examples. ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Enough context is provided in the sections above - [x] Adequate tests were added if applicable -- 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]
