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 2021/11/29 20:17:36 UTC
[GitHub] [spark] viirya commented on a change in pull request #34611: [SPARK-35867][SQL] Enable vectorized read for VectorizedPlainValuesReader.readBooleans
viirya commented on a change in pull request #34611:
URL: https://github.com/apache/spark/pull/34611#discussion_r758704028
##########
File path: sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/WritableColumnVector.java
##########
@@ -201,6 +202,28 @@ public WritableColumnVector reserveDictionaryIds(int capacity) {
*/
public abstract void putBooleans(int rowId, int count, boolean value);
+ /**
+ * Sets bits from [src[srcIndex], src[srcIndex + count]) to [rowId, rowId + count)
+ * src must contain bit-packed 8 booleans in the byte.
+ */
+ public void putBooleans(int rowId, int count, byte src, int srcIndex) {
Review comment:
This as a public API looks a bit dangerous. `count` cannot be more than 7, but there is not assert on it. Can we add one?
--
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