From 23777d1ce962422e546f94b860ad23f0f4476765 Mon Sep 17 00:00:00 2001 From: Moritz Meister <8422705+moritzmeister@users.noreply.github.com> Date: Fri, 6 Nov 2020 15:37:53 +0100 Subject: [PATCH] [HOPSWORKS-2122] Backend not handling null TimeTravelFormat sent by client (#133) --- python/hsfs/feature_group.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/hsfs/feature_group.py b/python/hsfs/feature_group.py index 18b00e830f..35f7c278f0 100644 --- a/python/hsfs/feature_group.py +++ b/python/hsfs/feature_group.py @@ -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, @@ -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, ): @@ -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: