We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3cdfbe commit 2fcc2c1Copy full SHA for 2fcc2c1
src/dataframe.rs
@@ -845,7 +845,7 @@ fn record_batch_into_schema(
845
) -> Result<RecordBatch, ArrowError> {
846
let schema = Arc::new(schema.clone());
847
let base_schema = record_batch.schema();
848
- if base_schema.fields().len() == 0 {
+ if base_schema.fields().is_empty() {
849
// Nothing to project
850
return Ok(RecordBatch::new_empty(schema));
851
}
0 commit comments