Skip to content

Commit 55bf758

Browse files
committed
continue test fix
1 parent 2e52a99 commit 55bf758

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

python/hsfs/feature_group.py

+8-15
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ def __init__(
22252225
features: Optional[List[Union["feature.Feature", Dict[str, Any]]]] = None,
22262226
location: Optional[str] = None,
22272227
online_enabled: bool = False,
2228-
time_travel_format: Optional[str] = None,
2228+
time_travel_format: Optional[str] = "HUDI",
22292229
statistics_config: Optional[Union["StatisticsConfig", Dict[str, Any]]] = None,
22302230
online_topic_name: Optional[str] = None,
22312231
topic_name: Optional[str] = None,
@@ -2330,20 +2330,13 @@ def __init__(
23302330

23312331
self.primary_key = primary_key
23322332
self.partition_key = partition_key
2333-
if (
2334-
time_travel_format is not None
2335-
and time_travel_format.upper() == "HUDI" or time_travel_format is None
2336-
and self._features
2337-
):
2338-
self._hudi_precombine_key = (
2339-
util.autofix_feature_name(hudi_precombine_key)
2340-
if hudi_precombine_key is not None
2341-
and self._time_travel_format is not None
2342-
and self._time_travel_format == "HUDI" or time_travel_format is None
2343-
else None
2344-
)
2345-
else:
2346-
self._hudi_precombine_key: Optional[str] = None
2333+
self._hudi_precombine_key = (
2334+
util.autofix_feature_name(hudi_precombine_key)
2335+
if hudi_precombine_key is not None
2336+
and self._time_travel_format is not None
2337+
and self._time_travel_format == "HUDI"
2338+
else None
2339+
)
23472340
self.statistics_config = statistics_config
23482341
self._offline_backfill_every_hr = offline_backfill_every_hr
23492342

0 commit comments

Comments
 (0)