Skip to content

Boolean values passed to add_csv_asset are converted to string #11206

@lucasarruda-ciandt

Description

@lucasarruda-ciandt

Describe the bug
When passing a boolean value for a flag such as index_col=False in add_csv_asset() (which is the option to disable column indexing in pandas, for instance), the pydantic validator (according to my debugging) seems to erroneously convert it to string, causing pandas to think it must use named column "False" for indexing the dataframe, thus it's impossible to disable such behavior.

This probably is affecting other bool flag as well and perhaps other engines too.

Expected behavior
Boolean values should be respected and not converted to string.

Environment (please complete the following information):

  • Operating System: Mac
  • Great Expectations Version: 1.4.5
  • Data Source: Pandas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions