bug(Impala): con.create_table fails when database name is not supplied to connection object #10263
Open
1 task done
Labels
bug
Incorrect behavior inside of ibis
What happened?
I noticed that
con.create_table
fails whencon
is created without specifying a database (catalogue) name. Previously I used the first method, however since I need to do a lot of cross-catalogue joins I had to switch to the second option.Method 1 works:
Method 2 doesn't:
The issue seems to be in function
_register_in_memory_table
ibis/ibis/backends/impala/__init__.py
Line 1230 in 41462c5
Even though the database name is passed to
con.create_table
, it is not passed to_register_in_memory_table
, and instead of creating a table underdb_name.tbl_name
, it attempts to create a table under thedefault
database. I believe the call tosg.to_identifier
should contain the database name.I also noticed that the temp memtables tables created by
_register_in_memory_table
are never dropped after use.What version of ibis are you using?
9.5.0
What backend(s) are you using, if any?
Impala
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: