Skip to content

Commit

Permalink
Setting adjust_database_uri for HiveEngineSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 18, 2017
1 parent d3f55a0 commit 5f5d576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,12 @@ def fetch_result_sets(cls, db, datasource_type, force=False):
return BaseEngineSpec.fetch_result_sets(
db, datasource_type, force=force)

@classmethod
def adjust_database_uri(cls, uri, selected_schema=None):
if selected_schema:
uri.database = selected_schema
return uri

@classmethod
def progress(cls, logs):
# 17/02/07 19:36:38 INFO ql.Driver: Total jobs = 5
Expand Down

0 comments on commit 5f5d576

Please sign in to comment.