Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-cnivera committed Nov 27, 2024
1 parent 50b7f1d commit 4e403da
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 43 deletions.
14 changes: 12 additions & 2 deletions semantic_model_generator/protos/semantic_model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ message Column {
// Retrieved literals of this column.
repeated RetrievalResult retrieved_literals = 11 [(optional) = true];

// Name of a Cortex Search Service configured on this column.
string cortex_search_service_name = 12 [(optional) = true];
// A Cortex Search Service configured on this column to retrieve literals.
string cortex_search_service_name = 12
[(optional) = true, deprecated = true];
CortexSearchService cortex_search_service = 13 [(optional) = true];
}

// Dimension columns contain categorical values (e.g. state, user_type,
Expand Down Expand Up @@ -109,6 +111,14 @@ message Dimension {
string cortex_search_service_name = 9 [(optional) = true];
}

// Fully qualified Cortex Search Service name.
message CortexSearchService {
string database = 1 [(optional) = true];
string schema = 2 [(optional) = true];
string service = 3;
string literal_column = 4 [(optional) = true];
}

// Time dimension columns contain time values (e.g. sale_date, created_at,
// year). NOTE: If modifying this protobuf, make appropriate changes in
// to_column_format() of snowpilot/semantic_context/utils/utils.py.
Expand Down
Loading

0 comments on commit 4e403da

Please sign in to comment.