Session.list_tables() returns an empty list, while...
# daft-dev
e
Session.list_tables() returns an empty list, while catalog.list_tables() returns my desired table identifier.
k
Ah yeah it looks like session.list_tables only lists tables attached directly to the session, rather than all tables. @Robert Howell is this the intended behavior?
šŸ‘ 1
šŸ™ 1
r
No, it should list all, including across catalogs. You can give a prefix/pattern.
e
Screenshare - 2025-05-22 125704 PM.mp4
I can create an issue for this if needed.
r
This should be an issue yes. You're correct that session.list_tables is only listing attached/temp but not the ones within catalogs. https://github.com/Eventual-Inc/Daft/blob/main/src/daft-session/src/session.rs#L237-L240
šŸ‘ 1
I think there may be a little more to it, since listing can be catalog dependent. Here are related issues that touch on this, • https://github.com/Eventual-Inc/Daft/issues/4035#issuecomment-2748646783 • https://github.com/Eventual-Inc/Daft/pull/4048
šŸ™ 1
e
k
@Robert Howell I'll assign you to this one then?
šŸ‘ 1