Skip to content
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

Distinguish the collect mode of different engines #6201

Closed

Conversation

lsm1
Copy link
Contributor

@lsm1 lsm1 commented Mar 20, 2024

🔍 Description

Issue References 🔗

Describe Your Solution 🔧

Currently, Spark, JDBC, and TRINO engines support incremental collection, but they share the same configuration option kyuubi.operation.incremental.collect. Sometimes, it's necessary to enable incremental collection only for specific engines, which requires distinguishing between them.

Types of changes 🔖

  • 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


Checklist 📝

Be nice. Be informative.

.doc("When true, the result will be sequentially calculated and returned to" +
s" the Spark driver. Note that, ${OPERATION_RESULT_MAX_ROWS.key} will be ignored" +
" on incremental collect mode. It fallback to `kyuubi.operation.incremental.collect`")
.version("1.9.0")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.9.0 is out, use 1.10.0

@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 88.46154% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 59.27%. Comparing base (c1239f2) to head (3c43d2c).
Report is 10 commits behind head on master.

Files Patch % Lines
...in/scala/org/apache/kyuubi/config/KyuubiConf.scala 90.47% 2 Missing ⚠️
...ine/spark/operation/SparkSQLOperationManager.scala 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6201      +/-   ##
============================================
+ Coverage     58.47%   59.27%   +0.79%     
  Complexity       24       24              
============================================
  Files           649      649              
  Lines         39312    40096     +784     
  Branches       5415     5454      +39     
============================================
+ Hits          22988    23766     +778     
- Misses        13856    13858       +2     
- Partials       2468     2472       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan3793 pan3793 changed the title Distinguishing the collect mode of different engines Distinguish the collect mode of different engines Mar 20, 2024
@pan3793 pan3793 added this to the v1.10.0 milestone Mar 20, 2024
@pan3793 pan3793 closed this in 67f099a Mar 20, 2024
@pan3793
Copy link
Member

pan3793 commented Mar 20, 2024

Thanks, merged to master

zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this pull request Mar 21, 2024
# 🔍 Description
## Issue References 🔗

## Describe Your Solution 🔧

Currently, Spark, JDBC, and TRINO engines support incremental collection, but they share the same configuration option `kyuubi.operation.incremental.collect`. Sometimes, it's necessary to enable incremental collection only for specific engines, which requires distinguishing between them.

## Types of changes 🔖

- [ ] 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

---

# Checklist 📝

- [ ] 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#6201 from lsm1/branch-distinguish-engine-collect-mode.

Closes apache#6201

3c43d2c [senmiaoliu] fix conf version
aa53231 [senmiaoliu] distinguish kyuubi.operation.incremental.collect for engine type

Authored-by: senmiaoliu <senmiaoliu@trip.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants