Skip to content

Apache DataFusion SQL Query Engine

minor: fix clippy on nightly rust (#2119)

Andrew Lamb57a3a6a042df
diff --git a/datafusion/core/src/dataframe.rs b/datafusion/core/src/dataframe.rs
index c4c4b838ac..845791166e 100644
--- a/datafusion/core/src/dataframe.rs
+++ b/datafusion/core/src/dataframe.rs
@@ -351,7 +351,7 @@ impl DataFrame {
pub async fn collect(&self) -> Result<Vec<RecordBatch>> {
let plan = self.create_physical_plan().await?;
let task_ctx = Arc::new(TaskContext::from(&self.session_state.read().clone()));
- Ok(collect(plan, task_ctx).await?)
+ collect(plan, task_ctx).await
}
/// Print results.
@@ -426,7 +426,7 @@ impl DataFrame {
pub async fn collect_partitioned(&self) -> Result<Vec<Vec<RecordBatch>>> {
let plan = self.create_physical_plan().await?;
let task_ctx = Arc::new(TaskContext::from(&self.session_state.read().clone()));
- Ok(collect_partitioned(plan, task_ctx).await?)
+ collect_partitioned(plan, task_ctx).await
}
/// Executes this DataFrame and returns one stream per partition.
@@ -447,7 +447,7 @@ impl DataFrame {
) -> Result<Vec<SendableRecordBatchStream>> {
let plan = self.create_physical_plan().await?;
let task_ctx = Arc::new(TaskContext::from(&self.session_state.read().clone()));
- Ok(execute_stream_partitioned(plan, task_ctx).await?)
+ execute_stream_partitioned(plan, task_ctx).await
}
/// Returns the schema describing the output of this DataFrame in terms of columns returned,