fn map_data( scalar_ref: Option<ScalarRefImpl<'_>>, data_type: &DataType, ) -> Result<AttributeValue>