Skip to content

Commit 626c94f

Browse files
chore: Test FeatureView apply to expose entity_columns behavior pre and post apply() (#4571)
* chore: Adding docs, community, and examples to ignore during PR tests Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> * chore: Updating test to confirm feature view apply behavior for entity columns Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> * removing changes from other PR Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> --------- Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 5850adc commit 626c94f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/pr_integration_tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: pr-integration-tests
22

33
on:
44
pull_request_target:
5-
paths-ignore:
6-
- 'community/**'
7-
- 'docs/**'
8-
- 'examples/**'
95
types:
106
- opened
117
- synchronize
@@ -100,4 +96,4 @@ jobs:
10096
SNOWFLAKE_CI_PASSWORD: ${{ secrets.SNOWFLAKE_CI_PASSWORD }}
10197
SNOWFLAKE_CI_ROLE: ${{ secrets.SNOWFLAKE_CI_ROLE }}
10298
SNOWFLAKE_CI_WAREHOUSE: ${{ secrets.SNOWFLAKE_CI_WAREHOUSE }}
103-
run: make test-python-integration
99+
run: make test-python-integration

.github/workflows/pr_local_integration_tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ name: pr-local-integration-tests
33

44
on:
55
pull_request_target:
6-
paths-ignore:
7-
- 'community/**'
8-
- 'docs/**'
9-
- 'examples/**'
106
types:
117
- opened
128
- synchronize
139
- labeled
10+
1411
jobs:
1512
integration-test-python-local:
1613
# when using pull_request_target, all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes.

sdk/python/tests/unit/test_on_demand_python_transformation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ def setUp(self):
307307
online=True,
308308
source=driver_stats_source,
309309
)
310+
assert driver_stats_fv.entities == [driver.name]
311+
assert driver_stats_fv.entity_columns == []
310312

311313
request_source = RequestSource(
312314
name="request_source",
@@ -373,6 +375,11 @@ def python_view(inputs: dict[str, Any]) -> dict[str, Any]:
373375
feature_view_name="driver_hourly_stats", df=driver_df
374376
)
375377

378+
fv_applied = self.store.get_feature_view("driver_hourly_stats")
379+
assert fv_applied.entities == [driver.name]
380+
# Note here that after apply() is called, the entity_columns are populated with the join_key
381+
assert fv_applied.entity_columns[0].name == driver.join_key
382+
376383
def test_python_transformation_returning_all_data_types(self):
377384
entity_rows = [
378385
{

0 commit comments

Comments
 (0)