pub(crate) fn create_partitions_stmt( table_info: &TableInfo, partitions: &[PartitionInfoWithVersion], ) -> Result<Option<Partitions>>