Title: fix: Fix pandas 2.x compatibility issue of Trino offline store caused by removed Series.iteritems() method by ebolblga · Pull Request #5345 · feast-dev/feast · GitHub
Open Graph Title: fix: Fix pandas 2.x compatibility issue of Trino offline store caused by removed Series.iteritems() method by ebolblga · Pull Request #5345 · feast-dev/feast
X Title: fix: Fix pandas 2.x compatibility issue of Trino offline store caused by removed Series.iteritems() method by ebolblga · Pull Request #5345 · feast-dev/feast
Description: Description This PR fixes an AttributeError encountered when using feast.get_historical_features() with Trino as offline store and pandas>=2.0.0, where Series.iteritems() has been removed. The code now uses row.items(), which is compatible with both older and newer pandas versions. What this PR does / why we need it: Feast with Trino as offline store currently breaks when used with pandas 2.x due to the removal of Series.iteritems(). This simple change ensures compatibility with modern pandas versions while retaining backwards compatibility with <2.0.0. So users don't have to add pandas>=1.5.3,<2.0.0 to requirements.txt, this PR will replace iteritems() method with items() for pandas 2.x compatibility in Trino offline store connector. Which issue(s) this PR fixes: N/A — this issue was found independently and not yet tracked. Misc This PR ensures compatibility with pandas >= 0.23.0 when calling historical feature retrieval function with Trino offline store. Realese note: Fix pandas 2.x compatibility issue of Trino offline store caused by removed Series.iteritems() method
Open Graph Description: Description This PR fixes an AttributeError encountered when using feast.get_historical_features() with Trino as offline store and pandas>=2.0.0, where Series.iteritems() has been removed. The c...
X Description: Description This PR fixes an AttributeError encountered when using feast.get_historical_features() with Trino as offline store and pandas>=2.0.0, where Series.iteritems() has been removed. T...
Opengraph URL: https://github.com/feast-dev/feast/pull/5345
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:adcfc369-b6a4-c78d-ec90-0a6f2ceb67e0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E57C:3301CD:82A1F36:AD835B8:696E0421 |
| html-safe-nonce | 14045bbdc12a998a37b82f719d6cd2933564a7063375b94a6b764d0d7702815c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTdDOjMzMDFDRDo4MkExRjM2OkFEODM1Qjg6Njk2RTA0MjEiLCJ2aXNpdG9yX2lkIjoiNDI2MTY1MDk0ODY5MDkzNjg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e6c7e65bea04d2219d874178e9d33c3d131cf5d279053bfcc705e33dc4aa3750 |
| hovercard-subject-tag | pull_request:2515757257 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/feast-dev/feast/pull/5345/files |
| twitter:image | https://avatars.githubusercontent.com/u/82185066?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/82185066?s=400&v=4 |
| og:image:alt | Description This PR fixes an AttributeError encountered when using feast.get_historical_features() with Trino as offline store and pandas>=2.0.0, where Series.iteritems() has been removed. The c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b5131b207ddd175abf059a848d5f4302ec0606b02211b989013be49cf08593e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8590a63bfc8093b241930ca57d536c9a50f9680 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width