mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-22 16:00:38 +00:00
feat: manual compaction (#3988)
* add compaction udf params * wip: pass compaction options through grpc * wip: pass compaction options all the way down to region server * wip: window compaction task * feat: trigger major compaction * refactor: optimize compaction parameter parsing * chore: rebase main * chore: update proto * chore: add some tests * feat: validate catalog * chore: fix typo and rebase main * fix: some cr comments * fix: file_time_bucket_span * fix: avoid upper bound overflow * chore: update proto
This commit is contained in:
@@ -213,6 +213,18 @@ pub enum Error {
|
||||
#[snafu(implicit)]
|
||||
location: Location,
|
||||
},
|
||||
|
||||
#[snafu(display(
|
||||
"Permission denied while operating catalog {} from current catalog {}",
|
||||
target,
|
||||
current
|
||||
))]
|
||||
PermissionDenied {
|
||||
target: String,
|
||||
current: String,
|
||||
#[snafu(implicit)]
|
||||
location: Location,
|
||||
},
|
||||
}
|
||||
|
||||
impl ErrorExt for Error {
|
||||
@@ -241,7 +253,8 @@ impl ErrorExt for Error {
|
||||
| InvalidSqlValue { .. }
|
||||
| TimestampOverflow { .. }
|
||||
| InvalidTableOption { .. }
|
||||
| InvalidCast { .. } => StatusCode::InvalidArguments,
|
||||
| InvalidCast { .. }
|
||||
| PermissionDenied { .. } => StatusCode::InvalidArguments,
|
||||
|
||||
SerializeColumnDefaultConstraint { source, .. } => source.status_code(),
|
||||
ConvertToGrpcDataType { source, .. } => source.status_code(),
|
||||
|
||||
Reference in New Issue
Block a user