Skip to content

move ArrayBuilder::new to a test-only trait #22028

@xiangjinwu

Description

@xiangjinwu

#[cfg(not(test))]
fn new(_capacity: usize) -> Self {
panic!("please use `ListArrayBuilder::with_type` instead");
}
#[cfg(test)]
fn new(capacity: usize) -> Self {
// TODO: deprecate this
Self::with_type(
capacity,
// Default datatype
DataType::List(Box::new(DataType::Int16)),
)
}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions