Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI #5778] Hive engine shall respect
hive.server2.enable.doAs
# 🔍 Description ## Issue References 🔗 Currently, the Hive engine ignores `hive.server2.enable.doAs` and always constructs `HiveSessionImplwithUGI` ## Describe Your Solution 🔧 Hive engine shall respect `hive.server2.enable.doAs`, to align the behavior with HiveServer2 ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ The Hive engine always constructs `HiveSessionImplwithUGI` #### Behavior With This Pull Request 🎉 When `hive.server2.enable.doAs` is `true`, the Hive engine constructs `HiveSessionImplwithUGI`; When `hive.server2.enable.doAs` is `false`, the Hive engine constructs `HiveSessionImpl`; #### Related Unit Tests --- # Checklists ## 📝 Author Self Checklist - [x] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project - [x] I have performed a self-review - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) ## 📝 Committer Pre-Merge Checklist - [x] Pull request title is okay. - [x] No license issues. - [x] Milestone correctly set? - [ ] Test coverage is ok - [x] Assignees are selected. - [ ] Minimum number of approvals - [x] No changes are requested **Be nice. Be informative.** Closes #5778 from pan3793/hive-doas. Closes #5778 4ac97a7 [Cheng Pan] Hive engine shall respect `hive.server2.enable.doAs` Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
- Loading branch information