kszucs commented on a change in pull request #873:
URL: https://github.com/apache/arrow-datafusion/pull/873#discussion_r735921300



##########
File path: python/src/context.rs
##########
@@ -15,78 +15,67 @@
 // specific language governing permissions and limitations
 // under the License.
 
+use std::future::Future;
 use std::path::PathBuf;
 use std::{collections::HashSet, sync::Arc};
 
-use uuid::Uuid;
-
 use tokio::runtime::Runtime;
+use uuid::Uuid;
 
-use pyo3::exceptions::PyValueError;
+use pyo3::exceptions::{PyKeyError, PyValueError};
 use pyo3::prelude::*;
 
+use datafusion::arrow::datatypes::{DataType, Schema};
 use datafusion::arrow::record_batch::RecordBatch;
 use datafusion::datasource::MemTable;
-use datafusion::execution::context::ExecutionContext as _ExecutionContext;
+use datafusion::execution::context::ExecutionContext;
 use datafusion::prelude::CsvReadOptions;
 
-use crate::dataframe;
-use crate::errors;
-use crate::functions::{self, PyVolatility};
-use crate::to_rust;
-use crate::types::PyDataType;
+use crate::catalog::PyCatalog;
+use crate::dataframe::PyDataFrame;
+use crate::errors::DataFusionError;
+use crate::functions::{create_udf, PyVolatility};
+
+fn wait_for_future<F: Future>(py: Python, f: F) -> F::Output

Review comment:
       Reuse this in dataframe.rs




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to