Skip to content

Should I avoid chaining inner joins? Typical star schema, example code inside #4031

Answered by cpcloud
p-a-a-a-trick asked this question in Q&A
Discussion options

You must be logged in to vote

As of 9.0: no you should not avoid chaining joins, you should chain as much as you like

This can be done now on main due to the efforts of everyone in the-epic-split:

❯ bat /tmp/test.py -l python -n
   1 import ibis
   2
   3 fact_sale = ibis.table(schema={"date_id": "int64", "store_id": "int64", "product_id": "int64", "unit_id": "int64"
     }, name="fact_sale")
   4 dim_date = ibis.table(schema={"date_id": "int64"}, name="dim_date")
   5 dim_store = ibis.table(schema={"store_id": "int64"}, name="dim_store")
   6 dim_product = ibis.table(schema={"product_id": "int64"}, name="dim_product")
   7 dim_unit = ibis.table(schema={"unit_id": "int64"}, name="dim_unit")
   8
   9 sdq = (
  10     …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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