[KYUUBI #4806][FLINK] Support time-out incremental result fetch for Flink engine#5134
[KYUUBI #4806][FLINK] Support time-out incremental result fetch for Flink engine#5134link3280 wants to merge 9 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5134 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 566 566
Lines 31654 31703 +49
Branches 4124 4134 +10
======================================
- Misses 31654 31703 +49
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@pan3793 @bowenliang123 PTAL. |
...l-engine/src/main/scala/org/apache/kyuubi/engine/flink/result/QueryResultFetchIterator.scala
Outdated
Show resolved
Hide resolved
...link-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/operation/FlinkOperation.scala
Outdated
Show resolved
Hide resolved
|
|
|
We had a related discussion here: #4806 (comment) |
|
Well, it's acceptable, while the discussion was treated as a hint for internal behaviour than for a feature for me at the time. |
|
Any further comments? @pan3793 |
|
@link3280 sorry for the late response, just back to the office, will finish review today. |
|
@pan3793 No worries. Please take a look whenever it works for you. |
...l-engine/src/main/scala/org/apache/kyuubi/engine/flink/result/QueryResultFetchIterator.scala
Outdated
Show resolved
Hide resolved
...l-engine/src/main/scala/org/apache/kyuubi/engine/flink/result/QueryResultFetchIterator.scala
Outdated
Show resolved
Hide resolved
...kyuubi-flink-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/result/ResultSet.scala
Outdated
Show resolved
Hide resolved
...link-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/operation/FlinkOperation.scala
Outdated
Show resolved
Hide resolved
...ngine/src/main/scala/org/apache/kyuubi/engine/flink/operation/FlinkSQLOperationManager.scala
Show resolved
Hide resolved
| "fetched, a TimeoutException would be thrown.") | ||
| .version("1.8.0") | ||
| .timeConf | ||
| .createOptional |
There was a problem hiding this comment.
what's the style for other configurations, use 0 or None to represent inf? let's algin the style
There was a problem hiding this comment.
I found kyuubi.operation.query.timeout uses None.
kyuubi/kyuubi-common/src/main/scala/org/apache/kyuubi/config/KyuubiConf.scala
Lines 1851 to 1863 in 9e3ac23
Plus, I think 0 sometimes denotes an immediate timeout instead of an infinite timeout, thus None is a better choice.
…uubi/engine/flink/result/ResultSet.scala Co-authored-by: Cheng Pan <pan3793@gmail.com>
…uubi/engine/flink/operation/FlinkOperation.scala Co-authored-by: Cheng Pan <pan3793@gmail.com>
|
Merged. Thanks a lot! |
|
Thanks for the efforts! |
Why are the changes needed?
As titled.
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