Skip to content

Commit

Permalink
[NSE-1170] Set correct row number in batch scan w/ partition columns (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyuan committed Dec 14, 2022
1 parent 68a5298 commit 3eb5477
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ object ArrowUtils {
vectors.map(_.asInstanceOf[ColumnVector]) ++
partitionVectors
.map { vector =>
vector.setValueCount(rowCount)
// The vector should call retain() whenever reuse it.
vector.retain()
vector.asInstanceOf[ColumnVector]
Expand Down

0 comments on commit 3eb5477

Please sign in to comment.