Skip to content

Commit

Permalink
Fix treasuredata endpoint (#4582)
Browse files Browse the repository at this point in the history
* fix treasuredata endpoint

* make endpoint as a required

* fix unneccessart required parameter
  • Loading branch information
mickeey2525 committed Feb 9, 2020
1 parent f215947 commit 9b71b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/treasuredata.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_schema(self, get_stats=False):
schema = {}
if self.configuration.get("get_schema", False):
try:
with tdclient.Client(self.configuration.get("apikey")) as client:
with tdclient.Client(self.configuration.get("apikey"),endpoint=self.configuration.get("endpoint")) as client:
for table in client.tables(self.configuration.get("db")):
table_name = "{}.{}".format(
self.configuration.get("db"), table.name
Expand Down

0 comments on commit 9b71b56

Please sign in to comment.