dongjoon-hyun commented on code in PR #43575:
URL: https://github.com/apache/spark/pull/43575#discussion_r1375693346
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -3183,9 +3184,9 @@ class SparkConnectPlanner(
case StreamingQueryManagerCommand.CommandCase.ACTIVE =>
val active_queries = session.streams.active
respBuilder.getActiveBuilder.addAllActiveQueries(
- active_queries
- .map(query => buildStreamingQueryInstance(query))
- .toIterable
+ immutable.ArraySeq
+ .unsafeWrapArray(active_queries
+ .map(query => buildStreamingQueryInstance(query)))
Review Comment:
nit. In this case, one liner could be better and consistent with other parts.
```
.unsafeWrapArray(active_queries.map(query =>
buildStreamingQueryInstance(query)))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]