Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 2.56 KB

File metadata and controls

37 lines (29 loc) · 2.56 KB

Overview

Functionality

In Feast, each batch data source is associated with corresponding offline stores. For example, a SnowflakeSource can only be processed by the Snowflake offline store, while a FileSource can be processed by both File and DuckDB offline stores. Otherwise, the primary difference between batch data sources is the set of supported types. Feast has an internal type system that supports primitive types (bytes, string, int32, int64, float32, float64, bool, timestamp), array types, set types, map/JSON types, and struct types. However, not every batch data source supports all of these types.

For more details on the Feast type system, see here.

Functionality Matrix

There are currently four core batch data source implementations: FileSource, BigQuerySource, SnowflakeSource, and RedshiftSource. There are several additional implementations contributed by the Feast community (PostgreSQLSource, SparkSource, and TrinoSource), which are not guaranteed to be stable or to match the functionality of the core implementations. Details for each specific data source can be found here.

Below is a matrix indicating which data sources support which types.

File BigQuery Snowflake Redshift Postgres Spark Trino Couchbase
bytes yes yes yes yes yes yes yes yes
string yes yes yes yes yes yes yes yes
int32 yes yes yes yes yes yes yes yes
int64 yes yes yes yes yes yes yes yes
float32 yes yes yes yes yes yes yes yes
float64 yes yes yes yes yes yes yes yes
bool yes yes yes yes yes yes yes yes
timestamp yes yes yes yes yes yes yes yes
array types yes yes yes no yes yes yes no
Map yes no yes yes yes yes yes no
Json yes yes yes yes yes no no no
Struct yes yes no no yes yes no no
set types yes* no no no no no no no

* Set types are defined in Feast's proto and Python type system but are not inferred by any backend. They must be explicitly declared in the feature view schema and are best suited for online serving use cases. See Type System for details.