fix: Fix STRING type handling in on-demand feature views with RequestSource by Copilot · Pull Request #5657 · feast-dev/feast
Added 'object' dtype mapping to STRING in type_map.py since pandas uses object dtype for string columns by default. Added test case to verify STRING type inputs work with RequestSource. Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
Enhanced the fix to check actual value types when type_name='object'. This prevents incorrect type inference for mixed-type object columns while still fixing the STRING type issue. Falls back to STRING when value is None or unknown type. Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix ondemand feature view apply failure for STRING inputs
Fix STRING type handling in on-demand feature views with RequestSource
Moved object dtype special handling after array type checks to prevent intercepting numpy arrays with object dtype. Added check to exclude lists/arrays from object dtype value-based inference. This fixes unit test failures where arrays with object dtype were incorrectly mapped to STRING instead of being processed as arrays. Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
franciscojavierarceo
changed the title
Fix STRING type handling in on-demand feature views with RequestSource
fix: Fix STRING type handling in on-demand feature views with RequestSource
The object dtype check was returning STRING early even when the value was an array/list, preventing the array handling logic from running. Moved the array check to the outer condition so arrays with object dtype fall through to the list/array handling code which correctly returns STRING_LIST. Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters