Skip to content

On-demand feature view cannot handle boolean Pandas native type #3382

@sudohainguyen

Description

@sudohainguyen

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 mechanism can internally infer them as bool type also.

Current Behavior

It throws exception right here line 201

image

Steps to reproduce

  • Use on_demand_feature_view
  • transform the input dataframe and cast some columns as boolean type
  • return immediately
  • apply the created on-demand view

Specifications

  • Version: 0.27.0
  • Platform: Linux/AMD64
  • Subsystem: Ubuntu

Possible Solution

Simple add a boolean mapping below this line

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions