Skip to content

Commit c6f5569

Browse files
[FSTORE-743][append] Allow reading from online in python engine from external feature groups (#979)
1 parent a160917 commit c6f5569

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/hsfs/feature_group.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,10 +2681,12 @@ def read(
26812681
# Raises
26822682
`hsfs.client.exceptions.RestAPIError`.
26832683
"""
2684-
if engine.get_type() == "python":
2684+
if engine.get_type() == "python" and not online:
26852685
raise FeatureStoreException(
26862686
"Reading an External Feature Group directly into a Pandas Dataframe using "
2687-
+ "Python/Pandas as Engine is not supported, however, you can use the "
2687+
+ "Python/Pandas as Engine from the external storage system "
2688+
+ "is not supported, however, if the feature group is online enabled, you can read "
2689+
+ "from online storage or you can use the "
26882690
+ "Query API to create Feature Views/Training Data containing External "
26892691
+ "Feature Groups."
26902692
)

0 commit comments

Comments
 (0)