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 0f2cd2e Add 'pub' and '#[pyo3(get, set)]' to DataTypeMap (#371)
0f2cd2e is described below
commit 0f2cd2e1be1406f0a462f2b106c41a111f90f37c
Author: Jeremy Dyer <[email protected]>
AuthorDate: Thu May 4 20:54:10 2023 -0400
Add 'pub' and '#[pyo3(get, set)]' to DataTypeMap (#371)
---
src/common/data_type.rs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/common/data_type.rs b/src/common/data_type.rs
index a7b79f4..a9b0d17 100644
--- a/src/common/data_type.rs
+++ b/src/common/data_type.rs
@@ -33,12 +33,12 @@ use crate::errors::py_datafusion_err;
#[derive(Debug, Clone)]
#[pyclass(name = "DataTypeMap", module = "datafusion.common", subclass)]
pub struct DataTypeMap {
- #[allow(dead_code)]
- arrow_type: PyDataType,
- #[allow(dead_code)]
- python_type: PythonType,
- #[allow(dead_code)]
- sql_type: SqlType,
+ #[pyo3(get, set)]
+ pub arrow_type: PyDataType,
+ #[pyo3(get, set)]
+ pub python_type: PythonType,
+ #[pyo3(get, set)]
+ pub sql_type: SqlType,
}
impl DataTypeMap {
@@ -421,7 +421,7 @@ impl DataTypeMap {
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[pyclass(name = "DataType", module = "datafusion.common")]
pub struct PyDataType {
- data_type: DataType,
+ pub data_type: DataType,
}
impl From<PyDataType> for DataType {