lokeshj1703 opened a new pull request, #12266:
URL: https://github.com/apache/hudi/pull/12266
### Change Logs
```
spark-sql (default)> drop index idx_rider on hudi_table;
24/11/13 16:14:25 ERROR SparkSQLDriver: Failed in [drop index idx_rider on
hudi_table]
org.apache.hudi.exception.HoodieSecondaryIndexException: Secondary index not
exists: idx_rider
at
org.apache.hudi.index.secondary.SecondaryIndexManager.drop(SecondaryIndexManager.java:145)
at
org.apache.spark.sql.hudi.command.DropIndexCommand.run(IndexCommands.scala:83)
at
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:75)
```
Drop index is not working using index name currently. It requires full name
with prefix in order to drop the index. This PR aims to fix it so that index
can be dropped using the index name itself.
Also the PR adds a fix so that show index works for both secondary and
functional index.
### Impact
NA
### Risk level (write none, low medium or high below)
low
### Documentation Update
NA
### Contributor's checklist
- [ ] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
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]