Skip to content

feat: Feast Spark Offline Store - #2349

Merged
adchia merged 58 commits into
feast-dev:masterfrom
kevjumba:feast_offline_store
Mar 4, 2022
Merged

feat: Feast Spark Offline Store#2349
adchia merged 58 commits into
feast-dev:masterfrom
kevjumba:feast_offline_store

Conversation

@kevjumba

@kevjumba kevjumba commented Mar 1, 2022

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Add spark offline store plugin from Adyen Spark to spark offline store. https://github.com/Adyen/feast-spark-offline-store
Currently 159/194 integration tests for spark source work.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Initial cut of Spark based Feast offline store

@kevjumba
kevjumba requested a review from a team as a code owner March 1, 2022 01:58
@kevjumba
kevjumba requested review from pyalex and removed request for a team March 1, 2022 01:58
@kevjumba
kevjumba force-pushed the feast_offline_store branch from cd74282 to 4eeef08 Compare March 1, 2022 02:01
@kevjumba
kevjumba requested review from adchia and removed request for pyalex March 1, 2022 02:02
@kevjumba kevjumba changed the title feat: [WIP] Feast Spark Offline Store feat: Feast Spark Offline Store Mar 1, 2022
Comment thread sdk/python/feast/type_map.py Outdated
Comment thread sdk/python/feast/type_map.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark_source.py Outdated
Comment thread sdk/python/feast/type_map.py Outdated
Comment thread sdk/python/tests/integration/registration/test_universal_types.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark.py Outdated
@codecov-commenter

codecov-commenter commented Mar 2, 2022

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 46.40000% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.27%. Comparing base (74f887f) to head (1acc088).
⚠️ Report is 1982 commits behind head on master.

Files with missing lines Patch % Lines
...stores/contrib/spark_offline_store/spark_source.py 47.66% 56 Missing ⚠️
sdk/python/feast/type_map.py 37.50% 10 Missing ⚠️
sdk/python/feast/inference.py 0.00% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2349      +/-   ##
==========================================
- Coverage   58.41%   58.27%   -0.15%     
==========================================
  Files         117      118       +1     
  Lines        9764     9885     +121     
==========================================
+ Hits         5704     5760      +56     
- Misses       4060     4125      +65     
Flag Coverage Δ
unittests 58.27% <46.40%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@kevjumba
kevjumba force-pushed the feast_offline_store branch from 3279f1f to 49c7dbf Compare March 3, 2022 00:28
Comment thread java/datatypes/src/main/proto/feast/core/DatastoreTable.proto Outdated
Comment thread docs/reference/data-sources/spark.md Outdated
Comment thread docs/reference/offline-stores/README.md Outdated
Comment thread docs/reference/offline-stores/spark.md Outdated
Comment thread docs/reference/offline-stores/spark.md Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark_offline_store/spark.py Outdated
Comment thread sdk/python/feast/type_map.py Outdated
Comment thread sdk/python/tests/integration/feature_repos/repo_configuration.py Outdated
Comment thread sdk/python/tests/integration/feature_repos/repo_configuration.py Outdated

@kevjumba kevjumba left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@adchia addressed changes PTAL!

Comment thread docs/reference/offline-stores/spark.md Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark_offline_store/spark.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark_offline_store/spark.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark_offline_store/spark.py Outdated
Comment thread sdk/python/feast/infra/offline_stores/third_party/spark_offline_store/spark.py Outdated
Comment thread sdk/python/tests/integration/feature_repos/repo_configuration.py Outdated
Comment thread sdk/python/tests/integration/feature_repos/repo_configuration.py Outdated
Comment thread sdk/python/feast/type_map.py Outdated
Comment thread sdk/python/feast/type_map.py Outdated
kevjumba added 3 commits March 4, 2022 12:05
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
@kevjumba
kevjumba force-pushed the feast_offline_store branch from 9c6f6fa to b43417e Compare March 4, 2022 20:05
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>

@adchia adchia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/lgtm

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adchia, kevjumba

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@adchia
adchia merged commit 98b8d8d into feast-dev:master Mar 4, 2022
woop pushed a commit that referenced this pull request Mar 5, 2022
# [0.19.0](v0.18.0...v0.19.0) (2022-03-05)

### Bug Fixes

* Added additional value types to UI parser and removed references to registry-bq.json ([#2361](#2361)) ([d202d51](d202d51))
* Fix Redshift bug that stops waiting on statements after 5 minutes ([#2363](#2363)) ([74f887f](74f887f))
* Method _should_use_plan only returns true for local sqlite provider ([#2344](#2344)) ([fdb5f21](fdb5f21))
* Remove redis service to prevent more conflicts and add redis node to master_only ([#2354](#2354)) ([993616f](993616f))
* Rollback Redis-py to Redis-py-cluster ([#2347](#2347)) ([1ba86fb](1ba86fb))
* Update github workflow to prevent redis from overlapping ports. ([#2350](#2350)) ([c2a6c6c](c2a6c6c))

### Features

* Add owner field to Entity and rename labels to tags ([412d625](412d625))
* Allow all snowflake python connector connection methods to be available to Feast ([#2356](#2356)) ([ec7385c](ec7385c))
* Allowing password based authentication and SSL for Redis in Java feature server ([0af8adb](0af8adb))
* Event timestamps response ([#2355](#2355)) ([5481caf](5481caf))
* Feast Spark Offline Store ([#2349](#2349)) ([98b8d8d](98b8d8d))
* Initial merge of Web UI logic ([#2352](#2352)) ([ce3bc59](ce3bc59))
* Key ttl setting for redis online store ([#2341](#2341)) ([236a108](236a108))
* Metadata changes & making data sources top level objects to power Feast UI ([#2336](#2336)) ([43da230](43da230))
@woop

woop commented Mar 5, 2022

Copy link
Copy Markdown
Member

🎉 This PR is included in version 0.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

SELECT {field_string},
ROW_NUMBER() OVER({partition_by_join_key_string} ORDER BY {timestamp_desc_string}) AS feast_row_
FROM {from_expression} t1
WHERE {event_timestamp_column} BETWEEN TIMESTAMP('{start_date_str}') AND TIMESTAMP('{end_date_str}')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm not sure if it was intentional that both the start and the end are inclusive, but IMO the starting point should be inclusive and the ending point should be exclusive. That way, if you have ranges of tuples like (a, b) and (b, c), they are contiguous and non-overlapping. By using BETWEEN the ranges will instead overlap at b.

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.

7 participants