Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOPSWORKS-3235] Append avoid index out of range when reading the fea… #713

Merged
merged 1 commit into from
Jul 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/hsfs/feature_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,13 +722,17 @@ def __init__(
self._partition_key = [
feat.name for feat in self._features if feat.partition is True
]
if time_travel_format is not None and time_travel_format.upper() == "HUDI":
if (
time_travel_format is not None
and time_travel_format.upper() == "HUDI"
and self._features
):
# hudi precombine key is always a single feature
self._hudi_precombine_key = [
feat.name
for feat in self._features
if feat.hudi_precombine_key is True
][0]
]
else:
self._hudi_precombine_key = None

Expand Down