-
Notifications
You must be signed in to change notification settings - Fork 982
[KYUUBI #6147][TRINO] Use the overlay conf as session conf #6148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| val sessionConf: KyuubiConf = sessionManager.getConf | ||
| val sessionConf: KyuubiConf = { | ||
| val engineConf = sessionManager.getConf | ||
| conf.foreach(kv => engineConf.set(kv._1, kv._2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this not pollute the engine conf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for catch, using sessionManager.getConf.clone instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cxzl25 seems we lack a pre-assembled session conf in AbstractSession, we need some major refactor to simplify the current conf evaluation, I roughly remember you have raised a similar idea previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pan3793
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I think we can adopt this ad-hoc fix and reconsider the d0f4798 's idea later
...bi-trino-engine/src/main/scala/org/apache/kyuubi/engine/trino/session/TrinoSessionImpl.scala
Outdated
Show resolved
Hide resolved
…/engine/trino/session/TrinoSessionImpl.scala
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6148 +/- ##
============================================
- Coverage 61.08% 60.98% -0.11%
Complexity 24 24
============================================
Files 625 625
Lines 37219 37219
Branches 5029 5029
============================================
- Hits 22737 22699 -38
- Misses 12029 12065 +36
- Partials 2453 2455 +2 ☔ View full report in Codecov by Sentry. |
# 🔍 Description ## Issue References 🔗 This pull request fixes #6147 ## Describe Your Solution 🔧 Overwriting the engine conf with the passed conf consider as the full session conf. ## 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 ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests None --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6148 from zwangsheng/KYUUBI#6147. Closes #6147 3e0fb0f [Cheng Pan] Update externals/kyuubi-trino-engine/src/main/scala/org/apache/kyuubi/engine/trino/session/TrinoSessionImpl.scala 452224e [zwangsheng] fix comments 4ee7c04 [zwangsheng] [KYUUBI #6147][TRINO] Using the overlay conf as session conf Lead-authored-by: zwangsheng <binjieyang@apache.org> Co-authored-by: Cheng Pan <pan3793@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org> (cherry picked from commit f5b89b0) Signed-off-by: Cheng Pan <chengpan@apache.org>
|
Thanks, merged to master/1.8.2 |
# 🔍 Description ## Issue References 🔗 This pull request fixes apache#6147 ## Describe Your Solution 🔧 Overwriting the engine conf with the passed conf consider as the full session conf. ## 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 ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests None --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6148 from zwangsheng/KYUUBI#6147. Closes apache#6147 3e0fb0f [Cheng Pan] Update externals/kyuubi-trino-engine/src/main/scala/org/apache/kyuubi/engine/trino/session/TrinoSessionImpl.scala 452224e [zwangsheng] fix comments 4ee7c04 [zwangsheng] [KYUUBI apache#6147][TRINO] Using the overlay conf as session conf Lead-authored-by: zwangsheng <binjieyang@apache.org> Co-authored-by: Cheng Pan <pan3793@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
# 🔍 Description ## Issue References 🔗 This pull request fixes apache#6147 ## Describe Your Solution 🔧 Overwriting the engine conf with the passed conf consider as the full session conf. ## 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 ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests None --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6148 from zwangsheng/KYUUBI#6147. Closes apache#6147 3e0fb0f [Cheng Pan] Update externals/kyuubi-trino-engine/src/main/scala/org/apache/kyuubi/engine/trino/session/TrinoSessionImpl.scala 452224e [zwangsheng] fix comments 4ee7c04 [zwangsheng] [KYUUBI apache#6147][TRINO] Using the overlay conf as session conf Lead-authored-by: zwangsheng <binjieyang@apache.org> Co-authored-by: Cheng Pan <pan3793@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
🔍 Description
Issue References 🔗
This pull request fixes #6147
Describe Your Solution 🔧
Overwriting the engine conf with the passed conf consider as the full session conf.
Types of changes 🔖
Test Plan 🧪
Behavior Without This Pull Request ⚰️
Behavior With This Pull Request 🎉
Related Unit Tests
None
Checklist 📝
Be nice. Be informative.