You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/02/05 05:26:14 UTC

[GitHub] [spark] kazuyukitanimura commented on a change in pull request #35393: [SPARK-38086][SQL] Make ArrowColumnVector Extendable

kazuyukitanimura commented on a change in pull request #35393:
URL: https://github.com/apache/spark/pull/35393#discussion_r799981350



##########
File path: sql/catalyst/src/main/java/org/apache/spark/sql/vectorized/ArrowColumnVector.java
##########
@@ -130,9 +130,16 @@ public ColumnarMap getMap(int rowId) {
   @Override
   public ArrowColumnVector getChild(int ordinal) { return childColumns[ordinal]; }
 
+  ArrowColumnVector(DataType type) {

Review comment:
       Thanks. My intention was to allow sub classes to override the constructor so that the subclass constructor can do more stuff before calling `initAccessor`. At least that is my use case.
   The subclasses can choose to override `initAccessor` or the subclass constructor can directly assign the `accessor`.
   
   Is your idea for `public ArrowColumnVector(ArrowVectorAccessor accessor)` more for using ArrowColumnVector as is rather than extending?




-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org