Skip to content

Commit

Permalink
[HOPSWORKS-2122] Backend not handling null TimeTravelFormat sent by c…
Browse files Browse the repository at this point in the history
…lient (#133)
  • Loading branch information
moritzmeister authored Nov 6, 2020
1 parent 2665497 commit 23777d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/hsfs/feature_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class FeatureGroup:
CACHED_FEATURE_GROUP = "CACHED_FEATURE_GROUP"
ON_DEMAND_FEATURE_GROUP = "ON_DEMAND_FEATURE_GROUP"
ENTITY_TYPE = "featuregroups"
HUDI = "HUDI"

def __init__(
self,
Expand All @@ -52,7 +51,7 @@ def __init__(
feat_hist_enabled=None,
statistic_columns=None,
online_enabled=False,
time_travel_format=HUDI,
time_travel_format=None,
hudi_enabled=False,
statistics_config=None,
):
Expand All @@ -71,7 +70,9 @@ def __init__(
self._location = location
self._jobs = jobs
self._online_enabled = online_enabled
self._time_travel_format = time_travel_format
self._time_travel_format = (
time_travel_format.upper() if time_travel_format is not None else None
)
self._hudi_enabled = hudi_enabled

if id is not None:
Expand Down

0 comments on commit 23777d1

Please sign in to comment.