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
1 change: 1 addition & 0 deletions protos/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ proto_library(
"execution.proto",
"profiles.proto",
],
deps = ["@com_google_protobuf//:struct_proto"],
)

ts_proto_library(
Expand Down
19 changes: 19 additions & 0 deletions protos/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,25 @@ message CompilationError {
string stack = 3;
}

// Compilation mode, unspecified is interpreted to AoT.
enum ActionCompilationMode {
ACTION_COMPILATION_MODE_UNSPECIFIED = 0;
// Ahead-of-time compilation (regular Dataform compilation).
ACTION_COMPILATION_MODE_AOT = 1;
// Just-in-time compilation.
// Will only populate jit_code fields in compiled graph,
// to be re-compiled at execution time.
ACTION_COMPILATION_MODE_JIT = 2;
}

message ActionDescriptor {
string description = 1;
// For Operations, 'columns' may be set iff has_output == true.
// For Assertions, 'columns' will always be empty.
repeated ColumnDescriptor columns = 2;
map<string, string> bigquery_labels = 3;
Metadata metadata = 4;
ActionCompilationMode compilation_mode = 5;
}

message Metadata {
Expand Down Expand Up @@ -188,6 +200,8 @@ message Table {
repeated string incremental_pre_ops = 28;
repeated string incremental_post_ops = 29;

string jit_code = 38;

// Warehouse specific features.
BigQueryOptions bigquery = 22;

Expand All @@ -207,6 +221,7 @@ message Operation {
bool disabled = 14;

repeated string queries = 6;
string jit_code = 15;
bool has_output = 8;
repeated string tags = 9;

Expand Down Expand Up @@ -264,6 +279,8 @@ message Test {
string test_query = 2;
string expected_output_query = 3;

string jit_code = 10;

// Generated.
string file_name = 4;

Expand Down Expand Up @@ -379,6 +396,8 @@ message CompiledGraph {

repeated Target targets = 11;

google.protobuf.Struct jit_context = 15;

reserved 5, 6;
}

Expand Down
Loading