chore: clea up dead code

pull/24376/head
Nga Tran 2021-10-05 13:08:40 -04:00
parent ad60d73657
commit eebbb9a165
2 changed files with 0 additions and 67 deletions

View File

@ -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;
}

View File

@ -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;
}