diff --git a/src/common/data_type.rs b/src/common/data_type.rs index a7b79f49f..a9b0d17d5 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 for DataType {