From 99c6ca0493923b63ecab4247369d77724619c189 Mon Sep 17 00:00:00 2001 From: kkochanovskiy Date: Tue, 13 May 2025 10:22:27 +0300 Subject: [PATCH] fix: Replace iteritems() with items() for pandas 2.x compatibility in Trino offline store connector Signed-off-by: ebolblga --- README.md | 6 ++---- .../contrib/trino_offline_store/connectors/upload.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 39a295e8f65..c6984fd8532 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![PyPI - Downloads](https://img.shields.io/pypi/dm/feast)](https://pypi.org/project/feast/) [![GitHub contributors](https://img.shields.io/github/contributors/feast-dev/feast)](https://github.com/feast-dev/feast/graphs/contributors) -[![unit-tests](https://github.com/feast-dev/feast/actions/workflows/unit_tests.yml/badge.svg?branch=master&event=pull_request)](https://github.com/feast-dev/feast/actions/workflows/unit_tests.yml) +[![unit-tests](https://github.com/feast-dev/feast/actions/workflows/unit_tests.yml/badge.svg?branch=master)](https://github.com/feast-dev/feast/actions/workflows/unit_tests.yml) [![integration-tests-and-build](https://github.com/feast-dev/feast/actions/workflows/master_only.yml/badge.svg?branch=master&event=push)](https://github.com/feast-dev/feast/actions/workflows/master_only.yml) [![java-integration-tests](https://github.com/feast-dev/feast/actions/workflows/java_master_only.yml/badge.svg?branch=master&event=push)](https://github.com/feast-dev/feast/actions/workflows/java_master_only.yml) [![linter](https://github.com/feast-dev/feast/actions/workflows/linter.yml/badge.svg?branch=master&event=push)](https://github.com/feast-dev/feast/actions/workflows/linter.yml) @@ -21,8 +21,6 @@ ## Join us on Slack! 👋👋👋 [Come say hi on Slack!](https://communityinviter.com/apps/feastopensource/feast-the-open-source-feature-store) -[Check out our DeepWiki!](https://deepwiki.com/feast-dev/feast) - ## Overview Feast (**Fea**ture **St**ore) is an open source feature store for machine learning. Feast is the fastest path to manage existing infrastructure to productionize analytic data for model training and online inference. @@ -259,4 +257,4 @@ Thanks goes to these incredible people: - + \ No newline at end of file diff --git a/sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py b/sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py index 1cdbf7f01e6..020fc793713 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py +++ b/sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/connectors/upload.py @@ -115,7 +115,7 @@ def _is_nan(value: Any) -> bool: def _format_value(row: pd.Series, schema: Dict[str, Any]) -> str: formated_values = [] - for row_name, row_value in row.iteritems(): + for row_name, row_value in row.items(): if schema[row_name].startswith("timestamp"): if isinstance(row_value, datetime): row_value = format_datetime(row_value)