-
Notifications
You must be signed in to change notification settings - Fork 313
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
[Arctic-1266][AMS]: Use ArcticSparkSessionCatalog for terminal #1264
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1264 +/- ##
============================================
- Coverage 29.33% 28.07% -1.26%
+ Complexity 5390 4876 -514
============================================
Files 695 652 -43
Lines 70818 67137 -3681
Branches 8170 7822 -348
============================================
- Hits 20771 18851 -1920
+ Misses 48041 46402 -1639
+ Partials 2006 1884 -122
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 47 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
The terminal module is designed to support different backend, we provider 2 default backend, Kyuubi and LocalSpark, so we can't assume that the backend implement of terminal is Spark. I suggest to add addtion properties about catalog type passed to TerminalSessionFactory, and replace ArcticSparkCatalog to ArcticSparkSessionCatalog in each TerminalSessionFactory implement class. |
thanks, this change is universal for both spark backend and kyuubi, and if we will use another engine (eg trino) as terminal backend, maybe we can do this at a new pr. |
I suggest to solve this issue in this way.
Both
|
thanks, I have fix it as this suggestion |
Tks for your PR, the code is fine, could please add some tests? or add a local test screenshot in this PR's comment? |
thanks, here is my test screenshot:
|
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
This PR has add a new AMS config property, so could you please update the docs? |
Added! |
…ve catalog (#1264) * Support terminal access hive table when switch to a catalog with HMS metastore * add document for arctic.ams.terminal.local.using-session-catalog-for-hive --------- Co-authored-by: geoli <geoli@tencent.com> Co-authored-by: baiyangtx <xiangnebula@163.com>
…ve catalog (apache#1264) * Support terminal access hive table when switch to a catalog with HMS metastore * add document for arctic.ams.terminal.local.using-session-catalog-for-hive --------- Co-authored-by: geoli <geoli@tencent.com> Co-authored-by: baiyangtx <xiangnebula@163.com>
Why are the changes needed?
Fix #1266
Support terminal access hive table when switch to a catalog with HMS metastore 。
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation