You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clickhouse data sources are Clickhouse tables or views.
6
+
These can be specified either by a table reference or a SQL query.
7
+
8
+
## Disclaimer
9
+
10
+
The Clickhouse data source does not achieve full test coverage.
11
+
Please do not assume complete stability.
12
+
13
+
## Examples
14
+
15
+
Defining a Clickhouse source:
16
+
17
+
```python
18
+
from feast.infra.offline_stores.contrib.clickhouse_offline_store.clickhouse_source import (
19
+
ClickhouseSource,
20
+
)
21
+
22
+
driver_stats_source = ClickhouseSource(
23
+
name="feast_driver_hourly_stats",
24
+
query="SELECT * FROM feast_driver_hourly_stats",
25
+
timestamp_field="event_timestamp",
26
+
created_timestamp_column="created",
27
+
)
28
+
```
29
+
30
+
The full set of configuration options is available [here](https://rtd.feast.dev/en/master/#feast.infra.offline_stores.contrib.clickhouse_offline_store.clickhouse_source.ClickhouseSource).
31
+
32
+
## Supported Types
33
+
34
+
Clickhouse data sources support all eight primitive types and their corresponding array types.
35
+
The support for Clickhouse Decimal type is achieved by converting it to double.
36
+
For a comparison against other batch data sources, please see [here](overview.md#functionality-matrix).
The Clickhouse offline store provides support for reading [ClickhouseSource](../data-sources/clickhouse.md).
6
+
* Entity dataframes can be provided as a SQL query or can be provided as a Pandas dataframe. A Pandas dataframes will be uploaded to Clickhouse as a table (temporary table by default) in order to complete join operations.
7
+
8
+
## Disclaimer
9
+
10
+
The Clickhouse offline store does not achieve full test coverage.
11
+
Please do not assume complete stability.
12
+
13
+
## Getting started
14
+
In order to use this offline store, you'll need to run `pip install 'feast[clickhouse]'`.
Note that `use_temporary_tables_for_entity_df` is an optional parameter.
37
+
The full set of configuration options is available in [ClickhouseOfflineStoreConfig](https://rtd.feast.dev/en/master/#feast.infra.offline_stores.contrib.clickhouse_offline_store.clickhouse.ClickhouseOfflineStore).
38
+
39
+
## Functionality Matrix
40
+
41
+
The set of functionality supported by offline stores is described in detail [here](overview.md#functionality).
42
+
Below is a matrix indicating which functionality is supported by the Clickhouse offline store.
0 commit comments