apache / apache/kyuubi

[Umbrella] Set table owner to kyuubi.session.user when create table

Open
#3,687 0 comments 0 reactions 0 assignees View on GitHub
kind:umbrella priority:major
Dominant language
Scala
Stars
2.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

### Search before asking

- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues) and found no similar issues.

### Describe the proposal

When run Kyuubi Spark SQL Engine in GROUP or SERVER mode, newly-created table's owner defaults to engine launch user.
However, some people may want to set table owner to Kyuubi session user.

We should support this behavior in KyuubiSparkExtension and provide a conf to enable/disable it.

### Task list

- [ ] #3698
- [ ] ~~#3707~~

### Are you willing to submit PR?

- [X] Yes. I can submit a PR independently to improve.
- [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
- [ ] No. I cannot submit a PR at this time.

Contributor guide

Open the contributing guide

Research direction

Start with KyuubiSparkExtension and review the umbrella tasks #3698 and #3707 to understand the intended implementation. Done means GROUP or SERVER mode can optionally set newly created table ownership to kyuubi.session.user through a configuration switch, with the enabled and disabled behaviors covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala, spark, sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.