Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix treasuredata endpoint #4582

Merged
merged 3 commits into from
Feb 9, 2020

Conversation

mickeey2525
Copy link
Contributor

@mickeey2525 mickeey2525 commented Jan 23, 2020

What type of PR is this? (check all applicable)

  • Other

Description

So far, TreasureData Query runner could not identify endpoint correctly and uses only https://api.treasuredata.com

Related Tickets & Documents

Closes #3185

@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If endpoint isNone it will use the default value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, default parameter(https://api.treasuredata.com) is used

@kravets-levko kravets-levko changed the title fix treasuredata endpoint Fix treasuredata endpoint Jan 24, 2020
@arikfr arikfr merged commit 9b71b56 into getredash:master Feb 9, 2020
@arikfr
Copy link
Member

arikfr commented Feb 9, 2020

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TreasureData getSchema fails when setting non-default region
2 participants