Skip to content

Commit 0fd5e2f

Browse files
committed
small improvements
1 parent 17a9d07 commit 0fd5e2f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/user_guides/fs/provenance/provenance.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ You can interact with the provenance graph using the UI and the APIs.
88

99
## Step 1: Storage connector lineage
1010

11-
The relationship between storage connecotors and feature groups is captured automatically when you create a external feature group. You can inspect the relationship between storage connecotors and feature groups using the APIs.
11+
The relationship between storage connectors and feature groups is captured automatically when you create an external feature group. You can inspect the relationship between storage connectors and feature groups using the APIs.
12+
13+
=== "Python"
14+
15+
```python
16+
# Retrieve the storage connector
17+
snowflake_sc = fs.get_storage_connector("snowflake_sc")
18+
19+
# Create the user profiles feature group
20+
user_profiles_fg = fs.create_on_demand_feature_group(
21+
name="user_profiles",
22+
version=1,
23+
storage_connector=snowflake_sc,
24+
query="SELECT * FROM USER_PROFILES"
25+
)
26+
user_profiles_fg.save()
27+
```
1228

1329
### Using the APIs
1430

@@ -17,7 +33,7 @@ Starting from a feature group metadata object, you can traverse upstream the pro
1733
=== "Python"
1834

1935
```python
20-
lineage = transaction_fg.get_storage_connector_provenance()
36+
lineage = user_profiles_fg.get_storage_connector_provenance()
2137

2238
# List all accessible parent storage connectors
2339
lineage.accessible

0 commit comments

Comments
 (0)