Skip to content

feat: Implements 'export to arrow batches' for Trino - #7281

Open
Marcus-Rosti wants to merge 2 commits into
feast-dev:masterfrom
Marcus-Rosti:mrosti/trino-arrow-batches
Open

Marcus-Rosti wants to merge 2 commits into
feast-dev:masterfrom
Marcus-Rosti:mrosti/trino-arrow-batches

Conversation

@Marcus-Rosti

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Implements 'export to arrow batches' for Trino. Without this, using something like the remote offline feature store is prohibitive since it requires the offline store to consume too much ram or OOM.

Which issue(s) this PR fixes:

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Misc

@Marcus-Rosti
Marcus-Rosti requested a review from a team as a code owner December 3, 2026 18:53
@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 93.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.46%. Comparing base (9b45df0) to head (0ece994).

Files with missing lines Patch % Lines
...tores/contrib/trino_offline_store/trino_queries.py 92.85% 3 Missing ⚠️
...ffline_stores/contrib/trino_offline_store/trino.py 92.30% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7281      +/-   ##
==========================================
+ Coverage   55.42%   55.46%   +0.03%     
==========================================
  Files         470      470              
  Lines       59880    59906      +26     
  Branches     8888     8893       +5     
==========================================
+ Hits        33188    33225      +37     
+ Misses      24455    24444      -11     
  Partials     2237     2237              
Flag Coverage Δ
go-feature-server 30.96% <ø> (ø)
python-unit 57.12% <93.33%> (+0.03%) ⬆️
Files with missing lines Coverage Δ
...ython/feast/infra/compute_engines/trino/compute.py 94.57% <100.00%> (ø)
.../python/feast/infra/compute_engines/trino/nodes.py 91.12% <100.00%> (ø)
.../python/feast/infra/compute_engines/trino/utils.py 83.33% <100.00%> (+2.20%) ⬆️
...ores/contrib/trino_offline_store/trino_type_map.py 97.53% <100.00%> (+0.06%) ⬆️
...ffline_stores/contrib/trino_offline_store/trino.py 47.61% <92.30%> (+1.45%) ⬆️
...tores/contrib/trino_offline_store/trino_queries.py 67.91% <92.85%> (+12.12%) ⬆️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b45df0...0ece994. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@franciscojavierarceo franciscojavierarceo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream cleanup needs to survive a failed cursor cancellation; we should still release the connection and temporary entity table.

Signed-off-by: Marcus Rosti <rostimarcus@gmail.com>
@Marcus-Rosti
Marcus-Rosti force-pushed the mrosti/trino-arrow-batches branch from 7aa295a to 53c76db Compare December 4, 2026 23:11
Signed-off-by: Marcus Rosti <rostimarcus@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants