Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CARBONDATA-3235] Fix Rename-Fail & Datamap-creation-Fail
1. Alter Table Rename Table Fail Problem: When tabe rename is success in hive, for failed in carbon data store, it would throw exception, but would not go back and undo rename in hive. Solution: A flag to keep check if hive rename has already executed, and of the code breaks after hive rename is done, go back and undo the hive rename. 2. Create-Preagregate-Datamap Fail Problem: When (preaggregate) datamap schema is written, but table updation is failed call CarbonDropDataMapCommand.processMetadata() call dropDataMapFromSystemFolder() -> this is supposed to delete the folder on disk, but doesnt as the datamap is not yet updated in table, and throws NoSuchDataMapException Solution: Call CarbonDropTableCommand.run() instead of CarbonDropTableCommand.processDatamap(). as CarbonDropTableCommand.processData() deletes actual folders from disk. This closes #2996
- Loading branch information