apache / apache/kyuubi

[FEATURE] Add a configuration to allow the operation log to be disabled

Open
#2,530 0 comments 0 reactions 0 assignees View on GitHub
kind:feature 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?q=is%3Aissue) and found no similar issues.

### Describe the feature

We can add a config like `hive.server2.logging.operation.enabled` to allow the operation log to be disabled.

### Motivation

Make the beeline console clean.

### Describe the solution

In `OperationManager#getOperationLogRowSet`, we add the `kyuubi.session.logging.operation.enabled` configuration to determine whether the log needs to be returned

### Additional context

_No response_

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start at OperationManager#getOperationLogRowSet and trace how operation logs are returned to the beeline console. Review existing configuration patterns for the proposed kyuubi.session.logging.operation.enabled setting, then verify that disabling it prevents the operation log from being returned while the default behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.