-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Made fixes to Go Operator DB persistence #4830
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -99,19 +99,20 @@ type OfflineStorePersistence struct { | |||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
// OfflineStoreFilePersistence configures the file-based persistence for the offline store service | ||||||||||||||||||||||||||||||
type OfflineStoreFilePersistence struct { | ||||||||||||||||||||||||||||||
// +kubebuilder:validation:Enum=dask;duckdb | ||||||||||||||||||||||||||||||
// +kubebuilder:validation:Enum=file;dask;duckdb | ||||||||||||||||||||||||||||||
Type string `json:"type,omitempty"` | ||||||||||||||||||||||||||||||
PvcConfig *PvcConfig `json:"pvc,omitempty"` | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
var ValidOfflineStoreFilePersistenceTypes = []string{ | ||||||||||||||||||||||||||||||
"dask", | ||||||||||||||||||||||||||||||
"duckdb", | ||||||||||||||||||||||||||||||
"file", | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
// OfflineStoreDBStorePersistence configures the DB store persistence for the offline store service | ||||||||||||||||||||||||||||||
type OfflineStoreDBStorePersistence struct { | ||||||||||||||||||||||||||||||
// +kubebuilder:validation:Enum=snowflake.offline;bigquery;redshift;spark;postgres;feast_trino.trino.TrinoOfflineStore;redis | ||||||||||||||||||||||||||||||
// +kubebuilder:validation:Enum=snowflake.offline;bigquery;redshift;spark;postgres;trino;redis;athena;mssql | ||||||||||||||||||||||||||||||
Type string `json:"type"` | ||||||||||||||||||||||||||||||
// Data store parameters should be placed as-is from the "feature_store.yaml" under the secret key. "registry_type" & "type" fields should be removed. | ||||||||||||||||||||||||||||||
SecretRef corev1.LocalObjectReference `json:"secretRef"` | ||||||||||||||||||||||||||||||
|
@@ -125,8 +126,10 @@ var ValidOfflineStoreDBStorePersistenceTypes = []string{ | |||||||||||||||||||||||||||||
"redshift", | ||||||||||||||||||||||||||||||
"spark", | ||||||||||||||||||||||||||||||
"postgres", | ||||||||||||||||||||||||||||||
"feast_trino.trino.TrinoOfflineStore", | ||||||||||||||||||||||||||||||
"trino", | ||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the docs are using "feast_trino.trino.TrinoOfflineStore" in the example configs. Is there an issue tracking the defect? otherwise, you can simply fix it here 😉 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dmartinol it appears the docs are out of date ... here's the code where these classes/types are declared - feast/sdk/python/feast/repo_config.py Lines 87 to 100 in a36f7e5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is what I was trying to suggest: raise an issue (optional) and fix the docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah ... agree @dmartinol There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opened an issue #4837 |
||||||||||||||||||||||||||||||
"redis", | ||||||||||||||||||||||||||||||
"athena", | ||||||||||||||||||||||||||||||
"mssql", | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
// OnlineStore configures the deployed online store service | ||||||||||||||||||||||||||||||
|
@@ -158,7 +161,7 @@ type OnlineStoreFilePersistence struct { | |||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
// OnlineStoreDBStorePersistence configures the DB store persistence for the offline store service | ||||||||||||||||||||||||||||||
type OnlineStoreDBStorePersistence struct { | ||||||||||||||||||||||||||||||
// +kubebuilder:validation:Enum=snowflake.online;redis;ikv;datastore;dynamodb;bigtable;postgres;cassandra;mysql;hazelcast;singlestore | ||||||||||||||||||||||||||||||
// +kubebuilder:validation:Enum=snowflake.online;redis;ikv;datastore;dynamodb;bigtable;postgres;cassandra;mysql;hazelcast;singlestore;hbase;elasticsearch;qdrant;couchbase | ||||||||||||||||||||||||||||||
Type string `json:"type"` | ||||||||||||||||||||||||||||||
// Data store parameters should be placed as-is from the "feature_store.yaml" under the secret key. "registry_type" & "type" fields should be removed. | ||||||||||||||||||||||||||||||
SecretRef corev1.LocalObjectReference `json:"secretRef"` | ||||||||||||||||||||||||||||||
|
@@ -178,6 +181,10 @@ var ValidOnlineStoreDBStorePersistenceTypes = []string{ | |||||||||||||||||||||||||||||
"mysql", | ||||||||||||||||||||||||||||||
"hazelcast", | ||||||||||||||||||||||||||||||
"singlestore", | ||||||||||||||||||||||||||||||
"hbase", | ||||||||||||||||||||||||||||||
"elasticsearch", | ||||||||||||||||||||||||||||||
"qdrant", | ||||||||||||||||||||||||||||||
"couchbase", | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
// LocalRegistryConfig configures the deployed registry service | ||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it appears this is the same as
dask
... so maybe we don't include it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is supported and not deprecated yet, so I think we should include it as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was removed from the doc since v0.40
https://docs.feast.dev/v0.40-branch/reference/offline-stores/overview
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But not the code and is not deprecated in the code