Repository: spark Updated Branches: refs/heads/master c57dfaef3 -> 2f1468429
[SPARK-21472][SQL][FOLLOW-UP] Introduce ArrowColumnVector as a reader for Arrow vectors. ## What changes were proposed in this pull request? This is a follow-up of #18680. In some environment, a compile error happens saying: ``` .../sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ArrowColumnVector.java:243: error: not found: type Array public void loadBytes(Array array) { ^ ``` This pr fixes it. ## How was this patch tested? Existing tests. Author: Takuya UESHIN <ues...@databricks.com> Closes #18701 from ueshin/issues/SPARK-21472_fup1. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2f146842 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2f146842 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2f146842 Branch: refs/heads/master Commit: 2f1468429ff3d4a3e577d708880a3e28186d2585 Parents: c57dfae Author: Takuya UESHIN <ues...@databricks.com> Authored: Fri Jul 21 21:06:56 2017 +0800 Committer: Wenchen Fan <wenc...@databricks.com> Committed: Fri Jul 21 21:06:56 2017 +0800 ---------------------------------------------------------------------- .../apache/spark/sql/execution/vectorized/ArrowColumnVector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/2f146842/sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ArrowColumnVector.java ---------------------------------------------------------------------- diff --git a/sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ArrowColumnVector.java b/sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ArrowColumnVector.java index 68e0abc..31dea6a 100644 --- a/sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ArrowColumnVector.java +++ b/sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ArrowColumnVector.java @@ -240,7 +240,7 @@ public final class ArrowColumnVector extends ReadOnlyColumnVector { } @Override - public void loadBytes(Array array) { + public void loadBytes(ColumnVector.Array array) { throw new UnsupportedOperationException(); } @@ -304,7 +304,7 @@ public final class ArrowColumnVector extends ReadOnlyColumnVector { childColumns = new ColumnVector[1]; childColumns[0] = new ArrowColumnVector(listVector.getDataVector()); - resultArray = new Array(childColumns[0]); + resultArray = new ColumnVector.Array(childColumns[0]); } else if (vector instanceof MapVector) { MapVector mapVector = (MapVector) vector; accessor = new StructAccessor(mapVector); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org