Skip to content

Commit 09fec85

Browse files
author
zhilingc
committed
Remove databaseURI, change subscription type, update comments
1 parent a2462ce commit 09fec85

File tree

3 files changed

+47
-12
lines changed

3 files changed

+47
-12
lines changed

protos/feast/core/Source.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ message Source {
3636
//
3737
// For SourceType.KAFKA, the following key value options are accepted:
3838
// - bootstrapServers: [comma delimited value of host[:port]]
39-
// - topics: [comma delimited value of topic names]
39+
// - topics: [comma delimited value of topic names. This value is provisioned by core and should not be set by the user.]
4040
map<string, string> options = 2;
4141
}

protos/feast/core/Store.proto

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,46 @@ message Store {
3030
CASSANDRA = 3;
3131
}
3232

33+
message RedisConfig {
34+
string host = 1;
35+
int32 port = 2;
36+
}
37+
38+
message BigQueryConfig {
39+
string projectId = 1;
40+
string datasetId = 2;
41+
}
42+
43+
message CassandraConfig {
44+
string host = 1;
45+
int32 port = 2;
46+
}
47+
48+
message Subscription {
49+
// Name of featureSet to subscribe to.
50+
string name = 1;
51+
52+
// Versions of the given featureSet that will be ingested into this store.
53+
// Valid options for version:
54+
// latest: only subscribe to latest version of feature set
55+
// [version number]: pin to a specific version
56+
// >[version number]: subscribe to all versions larger than or equal to [version number]
57+
string version = 2;
58+
}
59+
3360
// Name of the store.
3461
string name = 1;
3562

3663
// Type of store.
3764
StoreType type = 2;
3865

39-
// URI to connect to the database. Should contain all necessary information
40-
// to connect to and write/read to the store.
41-
string databaseURI = 3;
42-
43-
// Feature sets to subscribe to. Regex strings are allowed, in the form of
44-
// featureSetId:version.
45-
// Valid options for version:
46-
// latest: only subscribe to latest version of feature set
47-
// [version number]: pin to a specific version
48-
// [version number]^: subscribe to all versions larger than or equal to [version number]
49-
repeated string subscriptions = 4;
66+
// Feature sets to subscribe to.
67+
repeated Subscription subscriptions = 4;
68+
69+
// Configuration to connect to the store. Required.
70+
oneof config {
71+
RedisConfig RedisConfig = 11;
72+
BigQueryConfig BigQueryConfig = 12;
73+
CassandraConfig CassandraConfig = 13;
74+
}
5075
}

protos/feast/types/FeatureRow.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@ option java_outer_classname = "FeatureRowProto";
2626
option go_package = "github.com/gojek/feast/protos/generated/go/feast/types";
2727

2828
message FeatureRow {
29+
30+
// Features in the feature row.
2931
repeated Feature features = 2;
32+
33+
// Timestamp of the feature row. While the actual definition of this timestamp may vary
34+
// depending on the upstream feature creation pipelines, this is the timestamp that Feast
35+
// will use to perform joins, determine latest values, and coalesce rows.
3036
google.protobuf.Timestamp eventTimestamp = 3;
37+
38+
// Complete reference to the featureSet this featureRow belongs to, in the form of
39+
// featureSetName:version. This value will be used by the feast ingestion job to filter
40+
// rows, and write the values to the correct tables.
3141
string featureSet = 6;
3242
}

0 commit comments

Comments
 (0)