yjshen commented on code in PR #3363: URL: https://github.com/apache/arrow-datafusion/pull/3363#discussion_r963266214
########## datafusion-examples/examples/custom_datasource.rs: ########## @@ -243,8 +243,8 @@ impl ExecutionPlan for CustomExec { db.data.values().cloned().collect() }; - let mut id_array = UInt8Builder::new(users.len()); - let mut account_array = UInt64Builder::new(users.len()); + let mut id_array = UInt8Builder::new(); Review Comment: UInt8Builder is for primitive type UInt8, and its `with_capacity` takes only one parameter? ```rs /// Creates a new primitive array builder with capacity no of items pub fn with_capacity(capacity: usize) -> Self { ``` -- 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