psvri commented on code in PR #2592:
URL: https://github.com/apache/arrow-rs/pull/2592#discussion_r956580115


##########
arrow/src/compute/kernels/cast.rs:
##########
@@ -2355,7 +2355,7 @@ where
     let values = cast_values.as_any().downcast_ref::<StringArray>().unwrap();
 
     let keys_builder = PrimitiveBuilder::<K>::with_capacity(values.len());
-    let values_builder = StringBuilder::new(values.len());
+    let values_builder = StringBuilder::with_capacity(1024, values.len());

Review Comment:
   Yeah, I should have retained new.



-- 
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