Skip to content

Commit 385e602

Browse files
committed
Adds unwrap on try_push for Vec<String>
If it fails, the resulting Chunks will have wrong size With unwrap the failure wont be so silent. Failure without unwrap: _read_sql( RuntimeError: Invalid argument error: Chunk require all its arrays to have an equal number of rows
1 parent 34a2c7c commit 385e602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectorx/src/destinations/arrow2/arrow_assoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl ArrowAssoc for Vec<String> {
480480
for sub_value in value {
481481
string_array.push(Some(sub_value))
482482
}
483-
builder.try_push(Some(string_array));
483+
builder.try_push(Some(string_array)).unwrap();
484484
}
485485

486486
fn field(header: &str) -> Field {

0 commit comments

Comments
 (0)