fn write_schema_helper<W: Write>( node: &TypePtr, writer: &mut ThriftCompactOutputProtocol<W>, ) -> Result<()>