Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions ballista/core/proto/ballista.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ message BallistaPhysicalPlanNode {
SortShuffleWriterExecNode sort_shuffle_writer = 4;
ChaosExecNode chaos_exec = 5;
RuntimeStatsExecNode runtime_stats = 6;
BufferExecNode buffer = 7;
}
}

Expand All @@ -76,6 +77,20 @@ message QuantileSketchState {
repeated datafusion_common.ScalarValue state = 1;
}

// Flow-control operator with an operator-mode enum. The child plan is
// plumbed by the framework as `inputs[0]` during decode.
message BufferExecNode {
BufferMode mode = 1;
}

enum BufferMode {
// Buffers input while a MemoryReservation grows against the runtime's
// MemoryPool; the dam breaks when `try_grow` refuses further allocation.
BUFFER_MODE_DAM = 0;
// Future modes: PASS_THROUGH, BUFFER_ALL, SPILL_ON_PRESSURE, ...
// Add here as they land in Rust.
}

message ChaosExecNode {
double failure_probability = 1;
string fault_type = 2;
Expand Down
Loading