pan3793 commented on code in PR #6077:
URL: https://github.com/apache/kyuubi/pull/6077#discussion_r1500597491
##########
kyuubi-common/src/main/scala/org/apache/kyuubi/engine/result/TRowSetGenerator.scala:
##########
@@ -40,11 +42,7 @@ trait TRowSetGenerator[SchemaT, RowT, ColumnT]
}
def toRowBasedSet(rows: Seq[RowT], schema: SchemaT): TRowSet = {
- val rowSize = rows.length
- val tRows = new JArrayList[TRow](rowSize)
- var i = 0
- while (i < rowSize) {
- val row = rows(i)
+ val tRows = rows.map { row =>
var j = 0
Review Comment:
since there is no `i`, can we replace `j` with `i`?
--
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]