Skip to content

Commit 6c8b2c8

Browse files
Proto field additions for JiT flow
1 parent 4d485fe commit 6c8b2c8

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

protos/core.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,16 @@ message CompileConfig {
5151
// Project configuration overrides.
5252
ProjectConfig project_config_override = 3;
5353

54-
// Override compilation timeout settings.
54+
// Override top-level compilation timeout (the single compile worker that
55+
// runs once per invocation). Does not bound per-model JiT compilation;
56+
// see jit_timeout_millis.
5557
int32 timeout_millis = 6;
5658

59+
// Per-model JiT compilation worker timeout. Each model with JiT code gets
60+
// its own fresh budget; this is per-model, not a shared budget across the
61+
// compile.
62+
int32 jit_timeout_millis = 13;
63+
5764
Extension extension = 10;
5865

5966
// Whether to emit compilation debug logs.

protos/execution.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ message RunConfig {
1414
bool include_dependencies = 3;
1515
bool include_dependents = 11;
1616
bool full_refresh = 2;
17+
18+
// Wall-clock deadline for the entire run. When hit, all in-flight actions are
19+
// cancelled. Does not bound per-model JiT compilation; see jit_timeout_millis.
1720
int32 timeout_millis = 7;
1821

22+
// Per-model JiT compilation worker timeout. Each action with JiT code gets
23+
// its own fresh budget; this is per-model, not a shared budget across the
24+
// run. Falls back to DEFAULT_JIT_COMPILATION_TIMEOUT_MILLIS when unset.
25+
int32 jit_timeout_millis = 10;
26+
1927
// For internal use only, will be removed at a later date.
2028
bool disable_set_metadata = 9;
2129

@@ -46,6 +54,8 @@ message ExecutionAction {
4654

4755
string jit_code = 12;
4856

57+
bool disabled = 13;
58+
4959
reserved 1, 3, 7;
5060
}
5161

@@ -118,6 +128,7 @@ message TaskResult {
118128
string error_message = 2;
119129
Timing timing = 3;
120130
ExecutionMetadata metadata = 4;
131+
string compiled_sql = 5;
121132
}
122133

123134
message TestResult {

protos/jit.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ message JitCompilationRequest {
126126
repeated string file_paths = 6;
127127
// Current execution information for introspection.
128128
RunningExecutionData execution_data = 7;
129+
// File name where the target is defined.
130+
string file_name = 8;
129131
}
130132

131133
// JiT compilation response.

0 commit comments

Comments
 (0)