Skip to content

Commit 0d4891a

Browse files
committed
Add an example comment
1 parent 75d1f80 commit 0d4891a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/arrow-activerecord/arrowable.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def to_arrow(batch_size: 10000)
2121
in_batches(of: batch_size).each do |relation|
2222
records = relation.pluck(*target_column_names)
2323
if target_column_names.size == 1
24+
# [1, 2, 3] ->
25+
# [[1], [2], [3]]
2426
record_batch_builder.append(records.collect {|value| [value]})
2527
else
2628
record_batch_builder.append(records)

0 commit comments

Comments
 (0)