https://pinot.apache.org/ logo
t

troywinter

03/12/2021, 3:16 AM
Hi team, when connecting pinot using python pinotdb driver, how should I route to different tenant broker? I have configured different table using different tenant, should I use different connection string for different tenant?
Copy code
conn = connect(host="localhost", port=8000, path="/query/sql", scheme="http")
You can set tenant broker as
host
t

troywinter

03/12/2021, 3:54 AM
So I should set different connection for different tenant?
x

Xiang Fu

03/12/2021, 3:54 AM
You can also try
sqlalchemy.engine
, example is in the same python file
yes
t

troywinter

03/12/2021, 3:55 AM
Got it, thanks
x

Xiang Fu

03/12/2021, 3:55 AM
basically per tenant a connection