Skip to content

Schema validation fails for schema generated from the validated table itself #657

@hfrick

Description

@hfrick

When I use a schema generated from the same table I want to validate, I expect the validation to pass. However, this fails here. What's happening here? 🤔

library(pointblank)

# generate schema and use it to validate the same table
schema_mtcars <- col_schema(mtcars)
agent <- create_agent(mtcars) |>
  col_schema_match(schema_mtcars) |>
  interrogate()

# the one validation step in this agent fails
xlist <- agent |>
  get_agent_x_list()
xlist$n
#> [1] 1
xlist$n_failed
#> [1] 1

Created on 2025-10-15 with reprex v2.1.1

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