Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
NickCrews opened this issue Mar 5, 2025 · 0 comments · Fixed by #10945
Closed
1 task done
Labels
bug Incorrect behavior inside of ibis

Comments

@NickCrews
Copy link
Contributor

NickCrews commented Mar 5, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis
Projects
Status: done
Development

Successfully merging a pull request may close this issue.

1 participant