Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Hive write path, target path and write mode decision
Historically, we use the equality of `writePath` and `targetPath` and whether `writePath` exists to decide the write mode. This is difficult to understand. Thus the `WriteMode` enum was introduced in 126fac0. However, it is only used in `SemiTransactionalMetastore`. Also, `tagetPath` and `writePath` have to be fetched separately from `LocationService`. And there are root path (query level) and non-root path (partition/table level). These APIs are confusing. This commit did the following refactors: - Store the `WriteMode` in `LocationHandle`. - returns a `WriteInfo` contains `targetPath`, `writePath` and the `writeMode`.
- Loading branch information
Showing
9 changed files
with
229 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.