Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cff3a63
feat: Add Oracle DB as Offline store in python sdk & support in feas…
aniketpalu Feb 24, 2026
60f8d92
Added oracle db dependency from ibis-framework subgroups
aniketpalu Feb 24, 2026
9f00168
Operator yaml changes
aniketpalu Feb 24, 2026
07e6969
Data source writer ignored parameters, fixed
aniketpalu Feb 24, 2026
1fb6720
Replaced raw sql with dedicated truncate_table() to fix SQL Injection…
aniketpalu Feb 26, 2026
3abef8c
Minor improvements like single db connection, removal of default cred…
aniketpalu Feb 28, 2026
b991288
Fetching pre-filtered table from db
aniketpalu Mar 2, 2026
af7e7ee
Minor formatting changes
aniketpalu Mar 2, 2026
41e0901
Added Oracle DB Offline Store documentation
aniketpalu Mar 2, 2026
d4387a8
Resolved import error by removing OracleSource import from the __init__
aniketpalu Mar 2, 2026
b0e96d0
Fixed lint error by updating secret baseline
aniketpalu Mar 5, 2026
07c5e9a
fix: Exclude qdrant from docstring tests to avoid qdrant-client 1.17.…
aniketpalu Mar 5, 2026
be03d88
Generated secret.baseline to avoid lint error
aniketpalu Mar 5, 2026
c36299f
Fixed lint error
aniketpalu Mar 5, 2026
7e648c0
Updated .secrets.baseline
aniketpalu Mar 5, 2026
7573690
Fixed lint errors
aniketpalu Mar 6, 2026
1a78577
Fixed lint errors
aniketpalu Mar 6, 2026
8fc6190
Update sdk/python/feast/type_map.py
aniketpalu Mar 6, 2026
1f63beb
Updated dependency lock files
aniketpalu Mar 9, 2026
33c0b38
Fixed lint issues in Trino Offline Store
aniketpalu Mar 9, 2026
04adc97
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 9, 2026
e91fa8d
Updated requirements
aniketpalu Mar 9, 2026
caed7c8
Updated pixi.lock file
aniketpalu Mar 9, 2026
de9759e
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 9, 2026
e40a355
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 9, 2026
c71cdfd
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 9, 2026
9a20c65
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 10, 2026
9880a56
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 10, 2026
5335b0d
Restricted non-empty feature_views in get_historical_features() to av…
aniketpalu Mar 10, 2026
c706b0b
Removed _build_data_source_reader_for_retrieval function
aniketpalu Mar 10, 2026
414c0e0
Modified initial query to be _ to avoid empty string casting to Null …
aniketpalu Mar 10, 2026
5b84e73
cast DATE to TIMESTAMP in _read_oracle_table to preserve time lost by…
aniketpalu Mar 10, 2026
92f78ca
Use single database connection for pull_latest_from_table_or_query()
aniketpalu Mar 10, 2026
c79ba55
Improved readibility by breaking down the code into functions
aniketpalu Mar 10, 2026
95f7f55
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 10, 2026
1181be1
Merge branch 'master' into oracle-db-offline-store
aniketpalu Mar 10, 2026
b54c2a2
Updated .secret.baseline
aniketpalu Mar 10, 2026
fe797ed
Updated .secret.baseline and pixi.lock
aniketpalu Mar 10, 2026
466e2d2
Fixed lint issue
aniketpalu Mar 10, 2026
7670a90
Conflicts resolved
aniketpalu Mar 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@
"filename": "infra/feast-operator/api/v1/featurestore_types.go",
"hashed_secret": "44e17306b837162269a410204daaa5ecee4ec22c",
"is_verified": false,
"line_number": 726
"line_number": 727
}
],
"infra/feast-operator/api/v1/zz_generated.deepcopy.go": [
Expand Down Expand Up @@ -1539,5 +1539,5 @@
}
]
},
"generated_at": "2026-03-05T15:25:10Z"
"generated_at": "2026-03-10T18:11:57Z"
}
2 changes: 2 additions & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
* [Trino (contrib)](reference/data-sources/trino.md)
* [Azure Synapse + Azure SQL (contrib)](reference/data-sources/mssql.md)
* [Couchbase (contrib)](reference/data-sources/couchbase.md)
* [Oracle (contrib)](reference/data-sources/oracle.md)
* [Offline stores](reference/offline-stores/README.md)
* [Overview](reference/offline-stores/overview.md)
* [Dask](reference/offline-stores/dask.md)
Expand All @@ -112,6 +113,7 @@
* [Azure Synapse + Azure SQL (contrib)](reference/offline-stores/mssql.md)
* [Clickhouse (contrib)](reference/offline-stores/clickhouse.md)
* [Ray (contrib)](reference/offline-stores/ray.md)
* [Oracle (contrib)](reference/offline-stores/oracle.md)
* [Remote Offline](reference/offline-stores/remote-offline-store.md)
* [Online stores](reference/online-stores/README.md)
* [Overview](reference/online-stores/overview.md)
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/data-sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ Please see [Data Source](../../getting-started/concepts/data-ingestion.md) for a
{% content-ref url="clickhouse.md" %}
[clickhouse.md](clickhouse.md)
{% endcontent-ref %}

{% content-ref url="oracle.md" %}
[oracle.md](oracle.md)
{% endcontent-ref %}
36 changes: 36 additions & 0 deletions docs/reference/data-sources/oracle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Oracle source (contrib)

## Description

Oracle data sources are Oracle database tables.
These are specified by a table reference (e.g. `"TRANSACTION_FEATURES"` or `"SCHEMA.TABLE"`).

## Disclaimer

The Oracle data source does not achieve full test coverage.
Please do not assume complete stability.

## Examples

Defining an Oracle source:

```python
from feast.infra.offline_stores.contrib.oracle_offline_store.oracle_source import (
OracleSource,
)

driver_stats_source = OracleSource(
name="driver_hourly_stats",
table_ref="DRIVER_HOURLY_STATS",
event_timestamp_column="EVENT_TIMESTAMP",
created_timestamp_column="CREATED",
)
```

**Note:** Oracle stores unquoted identifiers in uppercase. Reference columns using the casing shown by Oracle (e.g. `USER_ID` for unquoted identifiers).

## Supported Types

Oracle data sources support standard Oracle numeric, string, date, and timestamp types mapped through the ibis Oracle backend.
For a comparison against other batch data sources, please see [here](overview.md#functionality-matrix).

4 changes: 4 additions & 0 deletions docs/reference/offline-stores/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ Please see [Offline Store](../../getting-started/components/offline-store.md) fo
{% content-ref url="ray.md" %}
[ray.md](ray.md)
{% endcontent-ref %}

{% content-ref url="oracle.md" %}
[oracle.md](oracle.md)
{% endcontent-ref %}
109 changes: 109 additions & 0 deletions docs/reference/offline-stores/oracle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Oracle offline store (contrib)

## Description

The Oracle offline store provides support for reading [OracleSources](../data-sources/oracle.md).
* Entity dataframes can be provided as a SQL query or as a Pandas dataframe.
* Uses the [ibis](https://ibis-project.org/) Oracle backend (`ibis.oracle`) for all database interactions.
* Only one of `service_name`, `sid`, or `dsn` may be set in the configuration.

## Disclaimer

The Oracle offline store does not achieve full test coverage.
Please do not assume complete stability.

## Getting started

Install the Oracle extras:

```bash
pip install 'feast[oracle]'
```

## Example

{% code title="feature_store.yaml" %}
```yaml
project: my_project
registry: data/registry.db
provider: local
offline_store:
type: oracle
host: DB_HOST
port: 1521
user: DB_USERNAME
password: DB_PASSWORD
service_name: ORCL
online_store:
path: data/online_store.db
```
{% endcode %}

Connection can alternatively use `sid` or `dsn` instead of `service_name`:

```yaml
# Using SID
offline_store:
type: oracle
host: DB_HOST
port: 1521
user: DB_USERNAME
password: DB_PASSWORD
sid: ORCL

# Using DSN
offline_store:
type: oracle
host: DB_HOST
port: 1521
user: DB_USERNAME
password: DB_PASSWORD
dsn: "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DB_HOST)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)))"
```

### Configuration reference

| Parameter | Required | Default | Description |
| :------------- | :------- | :---------- | :------------------------------------------------------- |
| `type` | yes | — | Must be set to `oracle` |
| `user` | yes | — | Oracle database user |
| `password` | yes | — | Oracle database password |
| `host` | no | `localhost` | Oracle database host |
| `port` | no | `1521` | Oracle database port |
| `service_name` | no | — | Oracle service name (mutually exclusive with sid and dsn) |
| `sid` | no | — | Oracle SID (mutually exclusive with service_name and dsn) |
| `database` | no | — | Oracle database name |
| `dsn` | no | — | Oracle DSN string (mutually exclusive with service_name and sid) |

## Functionality Matrix

The set of functionality supported by offline stores is described in detail [here](overview.md#functionality).
Below is a matrix indicating which functionality is supported by the Oracle offline store.

| | Oracle |
| :----------------------------------------------------------------- | :----- |
| `get_historical_features` (point-in-time correct join) | yes |
| `pull_latest_from_table_or_query` (retrieve latest feature values) | yes |
| `pull_all_from_table_or_query` (retrieve a saved dataset) | yes |
| `offline_write_batch` (persist dataframes to offline store) | yes |
| `write_logged_features` (persist logged features to offline store) | yes |

Below is a matrix indicating which functionality is supported by `OracleRetrievalJob`.

| | Oracle |
| ----------------------------------------------------- | ------ |
| export to dataframe | yes |
| export to arrow table | yes |
| export to arrow batches | no |
| export to SQL | no |
| export to data lake (S3, GCS, etc.) | no |
| export to data warehouse | no |
| export as Spark dataframe | no |
| local execution of Python-based on-demand transforms | yes |
| remote execution of Python-based on-demand transforms | no |
| persist results in the offline store | yes |
| preview the query plan before execution | no |
| read partitioned data | no |

To compare this set of functionality against other offline stores, please see the full [functionality matrix](overview.md#functionality-matrix).

3 changes: 2 additions & 1 deletion infra/feast-operator/api/v1/featurestore_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ var ValidOfflineStoreFilePersistenceTypes = []string{
// OfflineStoreDBStorePersistence configures the DB store persistence for the offline store service
type OfflineStoreDBStorePersistence struct {
// Type of the persistence type you want to use.
// +kubebuilder:validation:Enum=snowflake.offline;bigquery;redshift;spark;postgres;trino;athena;mssql;couchbase.offline;clickhouse;ray
// +kubebuilder:validation:Enum=snowflake.offline;bigquery;redshift;spark;postgres;trino;athena;mssql;couchbase.offline;clickhouse;ray;oracle
Type string `json:"type"`
// Data store parameters should be placed as-is from the "feature_store.yaml" under the secret key. "registry_type" & "type" fields should be removed.
SecretRef corev1.LocalObjectReference `json:"secretRef"`
Expand All @@ -422,6 +422,7 @@ var ValidOfflineStoreDBStorePersistenceTypes = []string{
"couchbase.offline",
"clickhouse",
"ray",
"oracle",
}

// OnlineStore configures the online store service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ spec:
- couchbase.offline
- clickhouse
- ray
- oracle
type: string
required:
- secretRef
Expand Down Expand Up @@ -7341,6 +7342,7 @@ spec:
- couchbase.offline
- clickhouse
- ray
- oracle
type: string
required:
- secretRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ spec:
- couchbase.offline
- clickhouse
- ray
- oracle
type: string
required:
- secretRef
Expand Down Expand Up @@ -7341,6 +7342,7 @@ spec:
- couchbase.offline
- clickhouse
- ray
- oracle
type: string
required:
- secretRef
Expand Down
2 changes: 2 additions & 0 deletions infra/feast-operator/dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@ spec:
- couchbase.offline
- clickhouse
- ray
- oracle
type: string
required:
- secretRef
Expand Down Expand Up @@ -7349,6 +7350,7 @@ spec:
- couchbase.offline
- clickhouse
- ray
- oracle
type: string
required:
- secretRef
Expand Down
16 changes: 5 additions & 11 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ mongodb = [
"dnspython>=2.0.0",
]
mssql = ["ibis-framework[mssql]>=10.0.0"]
oracle = ["ibis-framework[oracle]>=10.0.0"]
mysql = ["pymysql", "types-PyMySQL"]
openlineage = ["openlineage-python>=1.40.0"]
opentelemetry = ["prometheus_client", "psutil"]
Expand Down Expand Up @@ -152,7 +153,7 @@ test = [
]

ci = [
"feast[test, aws, azure, cassandra, clickhouse, couchbase, delta, docling, duckdb, elasticsearch, faiss, gcp, ge, go, grpcio, hazelcast, hbase, ibis, image, k8s, mcp, milvus, mssql, mysql, openlineage, opentelemetry, spark, trino, postgres, pytorch, qdrant, rag, ray, redis, singlestore, snowflake, sqlite_vec]",
"feast[test, aws, azure, cassandra, clickhouse, couchbase, delta, docling, duckdb, elasticsearch, faiss, gcp, ge, go, grpcio, hazelcast, hbase, ibis, image, k8s, mcp, milvus, mssql, mysql, openlineage, opentelemetry, oracle, spark, trino, postgres, pytorch, qdrant, rag, ray, redis, singlestore, snowflake, sqlite_vec]",
"build",
"virtualenv==20.23.0",
"dbt-artifacts-parser",
Expand Down
4 changes: 4 additions & 0 deletions sdk/python/feast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from feast.infra.offline_stores.contrib.athena_offline_store.athena_source import (
AthenaSource,
)
from feast.infra.offline_stores.contrib.oracle_offline_store.oracle_source import (
OracleSource,
)
from feast.infra.offline_stores.file_source import FileSource
from feast.infra.offline_stores.redshift_source import RedshiftSource
from feast.infra.offline_stores.snowflake_source import SnowflakeSource
Expand Down Expand Up @@ -56,6 +59,7 @@
"PushSource",
"RequestSource",
"AthenaSource",
"OracleSource",
"Project",
"FeastVectorStore",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading
Loading