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 2267243 commit b2b3782Copy full SHA for b2b3782
src/dataframe.rs
@@ -747,7 +747,7 @@ fn record_batch_into_schema(
747
) -> Result<RecordBatch, ArrowError> {
748
let schema = Arc::new(schema.clone());
749
let base_schema = record_batch.schema();
750
- if base_schema.fields().len() == 0 {
+ if base_schema.fields().is_empty() {
751
// Nothing to project
752
return Ok(RecordBatch::new_empty(schema));
753
}
0 commit comments