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 281087a commit 570d355Copy full SHA for 570d355
src/dataframe.rs
@@ -835,7 +835,7 @@ fn record_batch_into_schema(
835
) -> Result<RecordBatch, ArrowError> {
836
let schema = Arc::new(schema.clone());
837
let base_schema = record_batch.schema();
838
- if base_schema.fields().len() == 0 {
+ if base_schema.fields().is_empty() {
839
// Nothing to project
840
return Ok(RecordBatch::new_empty(schema));
841
}
0 commit comments