pub fn valid_arrow_type(&self, data_type: &ArrowDataType) -> bool {
        match self {
            Self::Tag => match data_type {
                ArrowDataType::Utf8 => true,
                ArrowDataType::Dictionary(key, value) => {
                    key.as_ref() == &ArrowDataType::Int32 && value.as_ref() == &ArrowDataType::Utf8
                }
                _ => false,
            },
            Self::Field(_) | Self::Timestamp => {
                let default_type: ArrowDataType = self.into();
                data_type == &default_type
            }
        }
    }
/// returns true if `arrow_type` can validly store this column type
returns true if `arrow_type` can validly store this column type
returns true if ` arrow_type ` can validly store this column type
pub fn valid_arrow_type(&self, data_type: &ArrowDataType) -> bool {
        match self {
            Self::Tag => match data_type {
                ArrowDataType::Utf8 => true,
                ArrowDataType::Dictionary(key, value) => {
                    key.as_ref() == &ArrowDataType::Int32 && value.as_ref() == &ArrowDataType::Utf8
                }
                _ => false,
            },
            Self::Field(_) | Self::Timestamp => {
                let default_type: ArrowDataType = self.into();
                data_type == &default_type
            }
        }
    }
pub fn valid_arrow_type ( & self , data_type : & ArrowDataType ) -> bool { match self { Self :: Tag => match data_type { ArrowDataType :: Utf8 => true , ArrowDataType :: Dictionary ( key , value ) => { key . as_ref ( ) == & ArrowDataType :: Int32 && value . as_ref ( ) == & ArrowDataType :: Utf8 } _ => false , } , Self :: Field ( _ ) | Self :: Timestamp => { let default_type : ArrowDataType = self . into ( ) ; data_type == & default_type } } }
returns true if `arrow_type` can validly store this column type
returns true if ` arrow_type ` can validly store this column type
&self
data_type
&ArrowDataType
&self
data_type
&ArrowDataType