Skip to content

Commit e4d8a78

Browse files
JiT compilation request format (#2085)
1 parent 5bb3b46 commit e4d8a78

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

protos/jit.proto

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,41 @@ message DeleteTableRequest {
8282
Target target = 1;
8383
}
8484

85+
// JiT compilation target type.
86+
enum JitCompilationTargetType {
87+
// Unspecified - will result in error.
88+
JIT_COMPILATION_TARGET_TYPE_UNSPECIFIED = 0;
89+
// Table/view target.
90+
JIT_COMPILATION_TARGET_TYPE_TABLE = 1;
91+
// Operation target.
92+
JIT_COMPILATION_TARGET_TYPE_OPERATION = 2;
93+
// Incremental table target.
94+
JIT_COMPILATION_TARGET_TYPE_INCREMENTAL_TABLE = 3;
95+
}
96+
97+
// JiT compilation request.
98+
message JitCompilationRequest {
99+
// Canonical target being compiled.
100+
Target target = 1;
101+
// Canonical target dependencies.
102+
repeated Target dependencies = 2;
103+
// JiT code to compile.
104+
string jit_code = 3;
105+
// JiT data, exposed to code in context.
106+
google.protobuf.Struct jit_data = 4;
107+
// JiT compilation target type.
108+
JitCompilationTargetType compilation_target_type = 5;
109+
}
110+
111+
// JiT compilation response.
112+
message JitCompilationResponse {
113+
oneof response {
114+
JitTableResult table = 1;
115+
JitOperationResult operation = 2;
116+
JitIncrementalTableResult incremental_table = 3;
117+
}
118+
}
119+
85120
// JiT compilation result for table actions (including views).
86121
// Fields match the Table message.
87122
message JitTableResult {

0 commit comments

Comments
 (0)