Skip to content

Commit

Permalink
fix uri form data'
Browse files Browse the repository at this point in the history
'
  • Loading branch information
timifasubaa committed Feb 6, 2018
1 parent 2789385 commit 741fa41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/db_engine_specs.py
Expand Up @@ -867,9 +867,8 @@ def get_column_names(filepath):
sql = """CREATE EXTERNAL TABLE {table_name} ( {schema_definition} )
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS
TEXTFILE LOCATION '{location}'""".format(**locals())

logging.info(form.con.data)
engine = create_engine(form.con.data)
engine = create_engine(form.con.data.sqlalchemy_uri)
engine.execute(sql)

@classmethod
Expand Down

0 comments on commit 741fa41

Please sign in to comment.