Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20277#discussion_r162534791
--- Diff:
sql/core/src/main/java/org/apache/spark/sql/vectorized/ArrowColumnVector.java
---
@@ -53,166 +41,83 @@ public int numNulls() {
@Override
public void close() {
if (childColumns != null) {
- for (int i = 0; i < childColumns.length; i++) {
- childColumns[i].close();
+ for (ArrowColumnVector childColumn : childColumns) {
--- End diff --
the performance is same, it's just a more standard way to iterate an array
in java
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]