Skip to content

Commit

Permalink
[hotfix] fix iframe viz
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 13, 2017
1 parent bae1067 commit 8bceda8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,18 @@ def fetch_result_sets(cls, db, datasource_type, force=False):
row['table_schema'], row['table_name']))
return result_sets

@classmethod
def extract_error_message(cls, e):
"""Extract error message for queries"""
logging.error(e)
print("-="*100)
print("-="*100)
print("-="*100)
print("-="*100)
print(type(e))
print(dir(e))
return error_msg_from_exception(e)

@classmethod
def extra_table_metadata(cls, database, table_name, schema_name):
indexes = database.get_indexes(table_name, schema_name)
Expand Down
3 changes: 3 additions & 0 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,9 @@ class IFrameViz(BaseViz):
credits = 'a <a href="https://github.com/airbnb/superset">Superset</a> original'
is_timeseries = False

def get_df(self):
return None


class ParallelCoordinatesViz(BaseViz):

Expand Down

0 comments on commit 8bceda8

Please sign in to comment.