Title: On-demand feature view cannot handle boolean Pandas native type · Issue #3382 · feast-dev/feast · GitHub
Open Graph Title: On-demand feature view cannot handle boolean Pandas native type · Issue #3382 · feast-dev/feast
X Title: On-demand feature view cannot handle boolean Pandas native type · Issue #3382 · feast-dev/feast
Description: Expected Behavior After applying some extra transformation steps within on-demand feature view decorator, the returned dataframe as Pandas DataFrame, which contains couple of boolean type columns (not bool). I was expecting type mapping ...
Open Graph Description: Expected Behavior After applying some extra transformation steps within on-demand feature view decorator, the returned dataframe as Pandas DataFrame, which contains couple of boolean type columns (...
X Description: Expected Behavior After applying some extra transformation steps within on-demand feature view decorator, the returned dataframe as Pandas DataFrame, which contains couple of boolean type columns (...
Opengraph URL: https://github.com/feast-dev/feast/issues/3382
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On-demand feature view cannot handle boolean Pandas native type","articleBody":"## Expected Behavior \r\nAfter applying some extra transformation steps within on-demand feature view decorator, the returned dataframe as Pandas DataFrame, which contains couple of `boolean` type columns (not `bool`). I was expecting type mapping mechanism can internally infer them as bool type also.\r\n\r\n## Current Behavior\r\nIt throws exception right here [line 201](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/type_map.py#L201)\r\n\r\n\u003cimg width=\"474\" alt=\"image\" src=\"https://user-images.githubusercontent.com/22145541/206345466-e257353b-9f5a-4465-b714-52ae602bbb68.png\"\u003e\r\n\r\n## Steps to reproduce\r\n- Use on_demand_feature_view \r\n- transform the input dataframe and cast some columns as `boolean` type\r\n- return immediately \r\n- apply the created on-demand view\r\n\r\n### Specifications\r\n\r\n- Version: 0.27.0\r\n- Platform: Linux/AMD64\r\n- Subsystem: Ubuntu\r\n\r\n## Possible Solution\r\nSimple add a `boolean` mapping below this [line](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/type_map.py#L149)\r\n","author":{"url":"https://github.com/sudohainguyen","@type":"Person","name":"sudohainguyen"},"datePublished":"2022-12-08T03:08:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3382/feast/issues/3382"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b8ee649-0375-98e2-3374-f634faa4bef4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8686:2CAE82:E4AE2F:138C939:697B138F |
| html-safe-nonce | 12dae2ddc9eae21423e049e34e4e4aec162298c76243277c074fa5514dc01cd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njg2OjJDQUU4MjpFNEFFMkY6MTM4QzkzOTo2OTdCMTM4RiIsInZpc2l0b3JfaWQiOiI4ODcxMTM5OTA2NjYzNjgyOTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0e942d5e94e330b508dee85103c84a8e3eb358f9e96508cbdab4a50aa3db8915 |
| hovercard-subject-tag | issue:1483474132 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/feast-dev/feast/3382/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1244e46cb6f87f2ebc90ae357e9a617932d6fe7493f9be34d43160fb9795c96/feast-dev/feast/issues/3382 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1244e46cb6f87f2ebc90ae357e9a617932d6fe7493f9be34d43160fb9795c96/feast-dev/feast/issues/3382 |
| og:image:alt | Expected Behavior After applying some extra transformation steps within on-demand feature view decorator, the returned dataframe as Pandas DataFrame, which contains couple of boolean type columns (... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sudohainguyen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d7bfc78137af9a4828305e52ab993fce981d7085 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width