bug(memtable): reusing same name for new memtable does not overwrite in REPL #10131
Open
1 task done
Labels
bug
Incorrect behavior inside of ibis
What happened?
Creating an
ibis.memtable
using the same name as a previously definedibis.memtable
retains the existing data from when it was first defined. What's particularly interesting is that this only seems to take place in a REPL environment.How I came across this
I was in an IPython session attempting to create a table from an
ibis.memtable
created from a pandas DataFrame on the MSSQL backend. It was taking a little while, so I cancelled it and recreated a new memtable with the same name with only the first 100 rows to speed things up.What's happening
Now, I only want the first row in the pandas DataFrame. If I use
df.head(1)
in an effort to only grab the top row but keep the same memtable name, here's what happens:But if we use a different name as an arg, here's what happens:
Sample code/data to repro
What version of ibis are you using?
9.5.0
More specifically, up to the most recent commit on main at 12a235c.
What backend(s) are you using, if any?
None
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: