You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ag...@apache.org on 2024/02/10 17:23:36 UTC
(arrow-datafusion-python) branch main updated: Allow PyDataFrame to be used from other projects (#582)
This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion-python.git
The following commit(s) were added to refs/heads/main by this push:
new 5296c0c Allow PyDataFrame to be used from other projects (#582)
5296c0c is described below
commit 5296c0cfcf8e6fcb654d5935252469bf04f929e9
Author: Andy Grove <an...@gmail.com>
AuthorDate: Sat Feb 10 10:23:30 2024 -0700
Allow PyDataFrame to be used from other projects (#582)
* Allow PyDataFrame to be used from other projects
* revert
---
src/context.rs | 4 ++--
src/lib.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/context.rs b/src/context.rs
index 9053e4f..f34fbce 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -842,7 +842,7 @@ impl PySessionContext {
}
}
-fn convert_table_partition_cols(
+pub fn convert_table_partition_cols(
table_partition_cols: Vec<(String, String)>,
) -> Result<Vec<(String, DataType)>, DataFusionError> {
table_partition_cols
@@ -856,7 +856,7 @@ fn convert_table_partition_cols(
.collect::<Result<Vec<_>, _>>()
}
-fn parse_file_compression_type(
+pub fn parse_file_compression_type(
file_compression_type: Option<String>,
) -> Result<FileCompressionType, PyErr> {
FileCompressionType::from_str(&*file_compression_type.unwrap_or("".to_string()).as_str())
diff --git a/src/lib.rs b/src/lib.rs
index 5e57db9..49c325a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -37,7 +37,7 @@ mod config;
#[allow(clippy::borrow_deref_ref)]
pub mod context;
#[allow(clippy::borrow_deref_ref)]
-mod dataframe;
+pub mod dataframe;
mod dataset;
mod dataset_exec;
pub mod errors;