-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Lazy Infra Creation with online_store Option Set to True #144
Conversation
@@ -153,6 +153,12 @@ class CassandraOnlineStoreConfig(FeastConfigBaseModel): | |||
request_timeout: Optional[StrictFloat] = None | |||
"""Request timeout in seconds.""" | |||
|
|||
ttl: Optional[StrictInt] = None |
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.
We can set this to 0. ttl is discouraged due to tombstones. If users need it, they can set which comes with extra load on the cluster.
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.
Will handle ttl in a separate PR.
sdk/python/feast/infra/online_stores/contrib/cassandra_online_store/cassandra_online_store.py
Outdated
Show resolved
Hide resolved
sdk/python/feast/infra/online_stores/contrib/cassandra_online_store/cassandra_online_store.py
Outdated
Show resolved
Hide resolved
@@ -88,7 +88,7 @@ | |||
event_ts TIMESTAMP, | |||
created_ts TIMESTAMP, | |||
PRIMARY KEY ((entity_key), feature_name) | |||
) WITH CLUSTERING ORDER BY (feature_name ASC); | |||
) WITH CLUSTERING ORDER BY (feature_name ASC) {optional_ttl_clause}; |
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.
We can change to WITH default_time_to_live = {ttl}
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.
Will handle ttl in a separate PR.
sdk/python/feast/infra/online_stores/contrib/cassandra_online_store/cassandra_online_store.py
Outdated
Show resolved
Hide resolved
statement = template.format( | ||
fqtable=fqtable, | ||
**kwargs, | ||
fqtable=fqtable, optional_ttl_clause=ttl_clause, **kwargs |
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.
just pass the ttl value directly.
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.
Will handle ttl in a separate PR.
sdk/python/feast/infra/online_stores/contrib/cassandra_online_store/cassandra_online_store.py
Outdated
Show resolved
Hide resolved
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.
See if feast plan
need any changes.
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.
Do squash merge
What this PR does / why we need it:
This PR is includes the addition of
lazy_table_creation
toCassandraOnlineStoreConfig
.lazy_table_creation
is used infeature_story.py
'sapply
method to defer infra creation to the Materialization stage, found in this PR: #147.Which issue(s) this PR fixes:
https://jira.expedia.biz/browse/EAPC-14919
Misc