-
Notifications
You must be signed in to change notification settings - Fork 982
[KYUUBI #5582] JDBC Engine supports configurable default fetchSize #5614
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
kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5614 +/- ##
============================================
+ Coverage 61.45% 62.11% +0.65%
Complexity 23 23
============================================
Files 603 604 +1
Lines 35664 36279 +615
Branches 4876 4941 +65
============================================
+ Hits 21916 22533 +617
+ Misses 11375 11374 -1
+ Partials 2373 2372 -1 ☔ View full report in Codecov by Sentry. |
|
|
||
| var defaultFetchSize: Int = 0 | ||
| def get(conf: KyuubiConf): JdbcDialect = { | ||
| defaultFetchSize = conf.get(ENGINE_JDBC_FETCH_SIZE) |
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.
This fetch size may be modified by the conf of different sessions. Can the fetch size be obtained in JdbcOperationManager?
Lines 44 to 46 in e8e981d
| val incrementalCollect = normalizedConf.get(OPERATION_INCREMENTAL_COLLECT.key).map( | |
| _.toBoolean).getOrElse( | |
| session.sessionManager.getConf.get(OPERATION_INCREMENTAL_COLLECT)) |
0d6e858 to
9688064
Compare
9688064 to
d0eb7c5
Compare
bowenliang123
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.
Minor comments for code readability.
...dbc-engine/src/main/scala/org/apache/kyuubi/engine/jdbc/operation/JdbcOperationManager.scala
Outdated
Show resolved
Hide resolved
...dbc-engine/src/main/scala/org/apache/kyuubi/engine/jdbc/operation/JdbcOperationManager.scala
Show resolved
Hide resolved
|
Thanks, merged to master. |
Why are the changes needed?
close #5582
JDBC Engine supports configurable default fetchSize
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 make a pull request
Was this patch authored or co-authored using generative AI tooling?
NO