feat(proto): support unpartitioned source in repartition (#319)

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-05-26 22:26:59 +08:00
committed by GitHub
parent dfd2a6d7d3
commit 7224c2ad6d
7 changed files with 4573 additions and 1099 deletions
+26 -2
View File
@@ -1031,12 +1031,36 @@ pub mod unset_index {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Repartition {
/// The from partition expressions serialized in JSON format.
/// Deprecated: use `source.partition_exprs.exprs` instead.
#[deprecated]
#[prost(string, repeated, tag = "1")]
pub from_partition_exprs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The into partition expressions serialized in JSON format.
#[prost(string, repeated, tag = "2")]
pub into_partition_exprs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(oneof = "repartition::Source", tags = "3, 4")]
pub source: ::core::option::Option<repartition::Source>,
}
/// Nested message and enum types in `Repartition`.
pub mod repartition {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum Source {
#[prost(message, tag = "3")]
PartitionExprs(super::PartitionExprs),
#[prost(message, tag = "4")]
Unpartitioned(super::UnpartitionedSource),
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PartitionExprs {
/// The partition expressions serialized in JSON format.
#[prost(string, repeated, tag = "1")]
pub exprs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnpartitionedSource {
/// Partition columns for unpartitioned/single-region.
#[prost(string, repeated, tag = "1")]
pub partition_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DropTableExpr {
Binary file not shown.