Skip to content

Commit 853ac8f

Browse files
committed
Remove GetStagingLocation and LoadBatchFeature from Feast Serving API
- LoadBatchFeature is not really necessary as the task can be accomplished with Feast SDK - Without LoadBatchFeature, the user does not really need to know staging location, hence we can remove GetStagingLocation
1 parent 77d1e54 commit 853ac8f

1 file changed

Lines changed: 0 additions & 65 deletions

File tree

protos/feast/serving/ServingService.proto

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ service ServingService {
4747
// The client is assumed to have access to these file URIs.
4848
rpc GetBatchFeatures (GetFeaturesRequest) returns (GetBatchFeaturesResponse);
4949

50-
// Get the URI prefix where the client can upload files to be accessed by Feast serving.
51-
rpc GetStagingLocation (GetStagingLocationRequest) returns (GetStagingLocationResponse);
52-
53-
// Load batch features from a list of source URIs asynchronously. The source
54-
// URIs must represent a feature set of a specific version.
55-
rpc LoadBatchFeatures (LoadBatchFeaturesRequest) returns (LoadBatchFeaturesResponse);
56-
5750
// Reload the job status with the latest state.
5851
rpc ReloadJob(ReloadJobRequest) returns (ReloadJobResponse);
5952
}
@@ -164,63 +157,6 @@ message GetBatchFeaturesResponse {
164157
Job job = 1;
165158
}
166159

167-
message GetStagingLocationRequest {}
168-
169-
message GetStagingLocationResponse {
170-
// The URI where the client can upload the files containing feature values.
171-
//
172-
// This URI acts as a staging location before the files are read by Feast.
173-
// The client should upload their feature values files to the path prefixed
174-
// by this URI. Note that the returned URI contains no trailing forward
175-
// slash, the client should add a forward slash before appending the
176-
// rest of the file paths to be uploaded.
177-
//
178-
// For example,
179-
// If the URI is "gs://bucket/staging", the client should upload "file_1.csv"
180-
// to "gs://bucket/staging/file_1.csv"
181-
string uri = 1;
182-
}
183-
184-
message LoadBatchFeaturesRequest {
185-
// The feature set name for this batch features.
186-
string feature_set_name = 1;
187-
188-
// The version of the feature set for this batch features.
189-
int32 feature_set_version = 2;
190-
191-
// Source URIs for the files containing feature values that should be loaded
192-
// to Feast.
193-
//
194-
// The client should call GetStagingLocation beforehand to get the URI to
195-
// upload the feature values files. Feast may not load the files in the
196-
// source URIs in order.
197-
//
198-
// Example source URIs:
199-
// - gs://bucket/features_1.csv
200-
// - gs://bucket/features_2.csv
201-
repeated string source_uris = 3;
202-
203-
// Data format for the feature values file.
204-
//
205-
// All files must be of the same data format. If the data format is CSV,
206-
// the first row must be a column header and Feast will infer the data types
207-
// of the feature values. For more deterministic and less error prone
208-
// batch feature loading, the client should use AVRO or PARQUET data format.
209-
//
210-
// Feast expects the column names of the features from the file to match
211-
// the entity names or feature names in the feature set. Although the column
212-
// names need not match all the features names in the feature set, at least
213-
// one of the column names must match one of the entity names. If not,
214-
// the load job will fail.
215-
DataFormat data_format = 4;
216-
217-
218-
}
219-
220-
message LoadBatchFeaturesResponse {
221-
Job job = 1;
222-
}
223-
224160
message ReloadJobRequest {
225161
Job job = 1;
226162
}
@@ -242,7 +178,6 @@ enum FeastServingType {
242178
enum JobType {
243179
JOB_TYPE_INVALID = 0;
244180
JOB_TYPE_DOWNLOAD = 1;
245-
JOB_TYPE_UPLOAD = 2;
246181
}
247182

248183
enum JobStatus {

0 commit comments

Comments
 (0)