domoritz commented on code in PR #35780:
URL: https://github.com/apache/arrow/pull/35780#discussion_r1235281770


##########
js/src/builder.ts:
##########
@@ -289,7 +290,7 @@ export abstract class Builder<T extends DataType = any, 
TNull = any> {
             valueOffsets = _offsets?.flush(length);
         } else if (valueOffsets = _offsets?.flush(length)) { // Variable-width 
primitives (Binary, Utf8), and Lists
             // Binary, Utf8
-            data = _values?.flush(_offsets.last());
+            data = _values?.flush(Number(_offsets.last()));

Review Comment:
   Inevitable because JS supports indexing with numbers only. 



-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to