chore: clea up dead code
parent
ad60d73657
commit
eebbb9a165
|
@ -128,30 +128,3 @@ message WipePreservedCatalog {
|
|||
// name of the database
|
||||
string db_name = 1;
|
||||
}
|
||||
|
||||
// Soft delete data from a table on a specified predicate
|
||||
// Soft delete means data is deleted from customer's point of view but
|
||||
// they still physically exist in IOx storage (MUB, RUB, OS). During Query time,
|
||||
// we will filter out the deleted rows.
|
||||
// We will implement Hard Delete to purge deleted data.
|
||||
message Delete {
|
||||
// name of the database
|
||||
string db_name = 1;
|
||||
|
||||
// table name
|
||||
string table_name = 2;
|
||||
|
||||
// delete predicate
|
||||
// Ideally, this can be any complicated expressions that DataFusion supports
|
||||
// but in our first version, we only support what our read buffer does which is
|
||||
// conjunctive expressions with columns being compared to literals using = or != operators.
|
||||
// Also, to avoid user from making mistake to delete the whole table, we will force them to
|
||||
// include delete time range start and stop in different fields defined below
|
||||
string delete_predicate = 3;
|
||||
|
||||
// start time range of deleting data
|
||||
string start_time = 4;
|
||||
|
||||
// stop time range of deleting data
|
||||
string stop_time = 5;
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
syntax = "proto3";
|
||||
package influxdata.iox.management.v1;
|
||||
option go_package = "github.com/influxdata/iox/management/v1";
|
||||
|
||||
// Operators supported in delete binary expressions
|
||||
enum DeleteOp {
|
||||
// not specified
|
||||
DELETE_OP_UNSPECIFIED = 0;
|
||||
|
||||
// "="
|
||||
DELETE_OP_EQ = 1;
|
||||
|
||||
// "!="
|
||||
DELETE_OP_NOT_EQ = 2;
|
||||
}
|
||||
|
||||
// a delete binary expression is either 'column_name = constant'
|
||||
// or 'column_name != constant'
|
||||
message DeleteBinaryExpr {
|
||||
// Left hand side which is a column name
|
||||
string column = 1;
|
||||
|
||||
// Operator
|
||||
DeleteOp op = 2;
|
||||
|
||||
// Right hand side which is literal/constant
|
||||
string value = 3;
|
||||
}
|
||||
|
||||
// A description of a delete predicate
|
||||
message ParseDelete {
|
||||
// start time in nanosecond of a range to be deleted
|
||||
int64 start_time = 1;
|
||||
|
||||
// stop time in nanosecond of a range to be deleted
|
||||
int64 stop_time = 2;
|
||||
|
||||
// list of delete predicate binary expressions
|
||||
repeated DeleteBinaryExpr exprs = 3;
|
||||
}
|
Loading…
Reference in New Issue