Skip to content

feat: match_to_schema #11366

Open
Open
@KronosTheLate

Description

@KronosTheLate

Is your feature request related to a problem?

When combining a new table into an existing table, it is often useful to allow some degree of flexibily for e.g. casting dates to strings or opposite, or up/downcasting the integer and floating columns. However, instead of upcasting to the most general type, it is really useful to be able to say "try to cast the existing dataframe to the new schema", if a date-column was previously cast to a string, and is not correctly cast to a date.

What is the motivation behind your request?

No response

Describe the solution you'd like

The function match_to_schema from polars is more or less exactly what I want. It, or something like it, would allow more flexible schema matching without sacrificing the control, in the sense that the new schema should have priority over the old one.

What version of ibis are you running?

None

What backend(s) are you using, if any?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeatures or general enhancements

    Type

    No type

    Projects

    Status

    backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions