Skip to content

About cross-database joins #10070

Answered by gforsyth
vmsaipreeth asked this question in Q&A
Sep 9, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @vmsaipreeth --

First, it's worth noting that in this context, when we say "database" we mean "a collection of tables" -- that PR was ensuring that you can do things like join tables that exist in two separate catalogs.

Here's an example for Trino:

>>> con = ibis.trino.connect(
      ...:     user="user",
      ...:     auth="",
      ...:     host="localhost",
      ...:     port=8080,
      ...:     database="memory",
      ...:     schema="default",
      ...: )

>>> con.list_tables()
['array_types',
 'astronauts',
 'awards_players',
 'batting',
 'diamonds',
 'functional_alltypes',
 'json_t',
 'map',
 'struct',
 'topk',
 'win']

>>> con.list_tables(database="tpch.sf1")
['customer',
 '…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vmsaipreeth
Comment options

@gforsyth
Comment options

Answer selected by cpcloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants