Skip to content

Commit

Permalink
[FLINK] Fix fetch timeout in session conf doesn't support ISO-8601
Browse files Browse the repository at this point in the history
  • Loading branch information
link3280 committed Dec 1, 2023
1 parent f4a739e commit 99a4964
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ class FlinkSQLOperationManager extends OperationManager("FlinkSQLOperationManage
resultMaxRowsDefault.toString).toInt

val resultFetchTimeout =
flinkSession.normalizedConf.get(ENGINE_FLINK_FETCH_TIMEOUT.key).map(_.toLong milliseconds)
flinkSession.normalizedConf
.get(ENGINE_FLINK_FETCH_TIMEOUT.key)
.map(ENGINE_FLINK_FETCH_TIMEOUT.valueConverter)
.map(_.get milliseconds)
.getOrElse(resultFetchTimeoutDefault)

val op = mode match {
Expand Down

0 comments on commit 99a4964

Please sign in to comment.