GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Add Oracle DB as Offline store in python sdk & operator by aniketpalu · Pull Request #6017 · feast-dev/feast

feat: Add Oracle DB as Offline store in python sdk & operator #6017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
ntkathole merged 40 commits into feast-dev:master from aniketpalu:oracle-db-offline-store
Mar 14, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat: Add Oracle DB as Offline store in python sdk & operator #6017

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


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

4 changes: 2 additions & 2 deletions 4 .secrets.baseline
Show comments
View file
Open in desktop

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

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

2 changes: 2 additions & 0 deletions 2 docs/SUMMARY.md
Show comments
View file
Open in desktop
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 4 docs/reference/data-sources/README.md
Show comments
View file
Open in desktop
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 36 docs/reference/data-sources/oracle.md
Show comments
View file
Open in desktop
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 4 docs/reference/offline-stores/README.md
Show comments
View file
Open in desktop
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 109 docs/reference/offline-stores/oracle.md
Show comments
View file
Open in desktop
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 3 infra/feast-operator/api/v1/featurestore_types.go
Show comments
View file
Open in desktop
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
2 changes: 2 additions & 0 deletions 2 infra/feast-operator/bundle/manifests/feast.dev_featurestores.yaml
Show comments
View file
Open in desktop
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 2 infra/feast-operator/config/crd/bases/feast.dev_featurestores.yaml
Show comments
View file
Open in desktop
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 2 infra/feast-operator/dist/install.yaml
Show comments
View file
Open in desktop
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 16 pixi.lock
Show comments
View file
Open in desktop

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

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

3 changes: 2 additions & 1 deletion 3 pyproject.toml
Show comments
View file
Open in desktop
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 4 sdk/python/feast/__init__.py
Show comments
View file
Open in desktop
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,
)
Comment thread
aniketpalu marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

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",
]
1 change: 1 addition & 0 deletions 1 sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store/__init__.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.