kyuubi/externals
Cheng Pan 933978e4e1 [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

4ac97a79d [Cheng Pan] Hive engine shall respect `hive.server2.enable.doAs`

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2023-11-27 19:35:07 +08:00
..
kyuubi-chat-engine [KYUUBI #5365] Don't use Log4j2's extended throwable conversion pattern in default logging configurations 2023-10-11 21:41:22 +08:00
kyuubi-download Bump 1.9.0-SNAPSHOT 2023-09-04 14:23:12 +08:00
kyuubi-flink-sql-engine [KYUUBI #5505][FLINK] Support HELP command 2023-11-07 15:09:57 +08:00
kyuubi-hive-sql-engine [KYUUBI #5778] Hive engine shall respect hive.server2.enable.doAs 2023-11-27 19:35:07 +08:00
kyuubi-jdbc-engine [KYUUBI #5464] JDBC Engine supports MySQL 2023-11-24 21:17:17 +08:00
kyuubi-spark-sql-engine [KYUUBI #5730] Tolerate execeptions for periodical scheduled tasks 2023-11-20 20:36:25 +08:00
kyuubi-trino-engine [KYUUBI #5282] Support configure Trino session conf in kyuubi-default.conf 2023-10-24 16:19:44 +08:00