Skip to content

bug: ibis.memtable([], schema={"a": "int64"}).execute() errors, should give empty table #10940

@NickCrews

Description

@NickCrews

What happened?

If I do import ibis; ibis.memtable([], schema={"a": "int64"}).execute(), I would expect to get an empty table back. But it errors instead. Ibis DOES allow you to actually create the expression with ibis.memtable([], schema={"a": "int64"}), it only is when you .execute() it that the error happens.

If you agree with what the desired behavior should be, I can put up a PR.

What version of ibis are you using?

main

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

duckdb, but I think this should apply for all backends?

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior inside of ibis

    Type

    No type

    Projects

    Status

    done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions