Skip to content

Commit 4d3ccb0

Browse files
nextchamp-saqibmergify[bot]
authored andcommitted
fix: join tables from another schema with main schema tables (#917)
(cherry picked from commit 1860c57)
1 parent 0a3991a commit 4d3ccb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

insights/insights/doctype/insights_data_source_v3/insights_data_source_v3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ def get_ibis_table(self, table_name):
408408
if self.database_type == "PostgreSQL" and "." in table_name:
409409
schema, table = table_name.split(".")
410410
return remote_db.table(table, database=schema)
411+
if self.type == "REST API":
412+
return remote_db.table(table_name, database=self.schema)
411413
return remote_db.table(table_name)
412414

413415

0 commit comments

Comments
 (0)