Skip to content

Commit 2b6c591

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 1d3c111 commit 2b6c591

File tree

17 files changed

+1065
-399
lines changed

17 files changed

+1065
-399
lines changed

docs/SUMMARY.md

+2
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@
8989
* [Overview](reference/online-stores/overview.md)
9090
* [SQLite](reference/online-stores/sqlite.md)
9191
* [Snowflake](reference/online-stores/snowflake.md)
92+
* [Rockset](reference/online-stores/rockset.md)
9293
* [Redis](reference/online-stores/redis.md)
9394
* [Datastore](reference/online-stores/datastore.md)
9495
* [DynamoDB](reference/online-stores/dynamodb.md)
9596
* [Bigtable](reference/online-stores/bigtable.md)
9697
* [PostgreSQL (contrib)](reference/online-stores/postgres.md)
9798
* [Cassandra + Astra DB (contrib)](reference/online-stores/cassandra.md)
9899
* [MySQL (contrib)](reference/online-stores/mysql.md)
100+
* [Rockset (contrib)](reference/online-stores/rockset.md)
99101
* [Providers](reference/providers/README.md)
100102
* [Local](reference/providers/local.md)
101103
* [Google Cloud Platform](reference/providers/google-cloud-platform.md)

docs/reference/online-stores/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Please see [Online Store](../../getting-started/architecture-and-components/onli
1414
[snowflake.md](snowflake.md)
1515
{% endcontent-ref %}
1616

17+
{% content-ref url="rockset.md" %}
18+
[rockset.md](rockset.md)
19+
{% endcontent-ref %}
20+
1721
{% content-ref url="redis.md" %}
1822
[redis.md](redis.md)
1923
{% endcontent-ref %}
@@ -42,3 +46,7 @@ Please see [Online Store](../../getting-started/architecture-and-components/onli
4246
[mysql.md](mysql.md)
4347
{% endcontent-ref %}
4448

49+
{% content-ref url="mysql.md" %}
50+
[rockset.md](rockset.md)
51+
{% endcontent-ref %}
52+
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Rockset
2+
3+
## Description
4+
5+
*Alpha Development
6+
7+
The [Rockset](https://rockset.com/demo-signup/) online store provides supports for materializing feature values within a Rockset collection for serving online features in real-time.
8+
9+
* Each document is uniquely identified by it's _id value. Repeated inerts into the same document 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+
Data Model Used Per Doc
14+
{
15+
"_id": (STRING) -- Unique Identifier for the feature document
16+
<key_name>: (STRING) -- Feature Values Mapped by Feature Name. Feature values stored as serialized hex string.
17+
....
18+
"event_ts": (STRING) -- ISO Stringified Timestamp
19+
"created_ts": (STRING) -- ISO Stringified Timestamp
20+
}
21+
22+
23+
## Example
24+
25+
{% code title="feature_store.yaml" %}
26+
```yaml
27+
project: my_feature_app
28+
registry: data/registry.db
29+
provider: local
30+
online_stores
31+
type: rockset
32+
apikey: MY_APIKEY_HERE
33+
host: api.usw2a1.rockset.com
34+
```
35+
36+
{% encode %}
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)