Skip to content

Commit a799056

Browse files
committed
feat: Add Rockset as an OnlineStore
This commit adds Rockset as a contributed online store. It implements the Update, Teardown, Read and Write apis using the Rockset pythonn client. Signed-off-by: Daniel Lin <dan@rockset.com>
1 parent ff66784 commit a799056

18 files changed

+691
-0
lines changed

docs/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
* [PostgreSQL (contrib)](reference/online-stores/postgres.md)
9797
* [Cassandra + Astra DB (contrib)](reference/online-stores/cassandra.md)
9898
* [MySQL (contrib)](reference/online-stores/mysql.md)
99+
* [Rockset (contrib)](reference/online-stores/rockset.md)
99100
* [Providers](reference/providers/README.md)
100101
* [Local](reference/providers/local.md)
101102
* [Google Cloud Platform](reference/providers/google-cloud-platform.md)

docs/reference/online-stores/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ Please see [Online Store](../../getting-started/architecture-and-components/onli
4242
[mysql.md](mysql.md)
4343
{% endcontent-ref %}
4444

45+
{% content-ref url="mysql.md" %}
46+
[rockset.md](rockset.md)
47+
{% endcontent-ref %}
48+
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Rockset (contrib)
2+
3+
## Description
4+
5+
In Alpha Development.
6+
7+
The [Rockset](https://rockset.com/demo-signup/) online store provides support for materializing feature values within a Rockset collection for serving online features in real-time.
8+
9+
* Each document is uniquely identified by its '_id' value. Repeated inserts into the same document '_id' will result in an upsert.
10+
11+
Rockset indexes all columns allowing for quick per feature look up and also allows for a dynamic typed schema that can change based on any new requirements. ApiKeys can be found in the console
12+
along with host urls which you can find in "View Region Endpoint Urls".
13+
14+
Data Model Used Per Doc
15+
16+
```
17+
{
18+
"_id": (STRING) Unique Identifier for the feature document.
19+
<key_name>: (STRING) Feature Values Mapped by Feature Name. Feature
20+
values stored as a serialized hex string.
21+
....
22+
"event_ts": (STRING) ISO Stringified Timestamp.
23+
"created_ts": (STRING) ISO Stringified Timestamp.
24+
}
25+
```
26+
27+
28+
## Example
29+
30+
```yaml
31+
project: my_feature_app
32+
registry: data/registry.db
33+
provider: local
34+
online_stores
35+
type: rockset
36+
apikey: MY_APIKEY_HERE
37+
host: api.usw2a1.rockset.com
38+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
feast.infra.online\_stores.contrib.rockset\_online\_store package
2+
=================================================================
3+
4+
Submodules
5+
----------
6+
7+
feast.infra.online\_stores.contrib.rockset\_online\_store.rockset module
8+
------------------------------------------------------------------------
9+
10+
.. automodule:: feast.infra.online_stores.contrib.rockset_online_store.rockset
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
Module contents
16+
---------------
17+
18+
.. automodule:: feast.infra.online_stores.contrib.rockset_online_store
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:

sdk/python/docs/source/feast.infra.online_stores.contrib.rst

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Subpackages
1010
feast.infra.online_stores.contrib.cassandra_online_store
1111
feast.infra.online_stores.contrib.hbase_online_store
1212
feast.infra.online_stores.contrib.mysql_online_store
13+
feast.infra.online_stores.contrib.rockset_online_store
1314

1415
Submodules
1516
----------
@@ -54,6 +55,14 @@ feast.infra.online\_stores.contrib.postgres\_repo\_configuration module
5455
:undoc-members:
5556
:show-inheritance:
5657

58+
feast.infra.online\_stores.contrib.rockset\_repo\_configuration module
59+
----------------------------------------------------------------------
60+
61+
.. automodule:: feast.infra.online_stores.contrib.rockset_repo_configuration
62+
:members:
63+
:undoc-members:
64+
:show-inheritance:
65+
5766
Module contents
5867
---------------
5968

sdk/python/feast/infra/online_stores/contrib/rockset_online_store/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)