Skip to content

Commit 61e3e02

Browse files
authored
fix: Fix pandas 2.x compatibility issue of Trino offline store caused by removed Series.iteritems() method (#5345)
fix: Replace iteritems() with items() for pandas 2.x compatibility in Trino offline store connector Signed-off-by: ebolblga <[email protected]>
1 parent 5cc7c5f commit 61e3e02

File tree

1 file changed

+1
-1
lines changed
  • sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors

1 file changed

+1
-1
lines changed

sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _is_nan(value: Any) -> bool:
115115

116116
def _format_value(row: pd.Series, schema: Dict[str, Any]) -> str:
117117
formated_values = []
118-
for row_name, row_value in row.iteritems():
118+
for row_name, row_value in row.items():
119119
if schema[row_name].startswith("timestamp"):
120120
if isinstance(row_value, datetime):
121121
row_value = format_datetime(row_value)

0 commit comments

Comments
 (0)