fn validate_table_metadata( table: &Table, schema_id: i32, partition_spec_id: i32, format_version: Option<FormatVersion>, ) -> Result<()>