mirror of https://github.com/apache/superset.git
parent
2789385688
commit
2d8a0cc6c9
|
@ -867,9 +867,8 @@ class HiveEngineSpec(PrestoEngineSpec):
|
||||||
sql = """CREATE EXTERNAL TABLE {table_name} ( {schema_definition} )
|
sql = """CREATE EXTERNAL TABLE {table_name} ( {schema_definition} )
|
||||||
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS
|
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS
|
||||||
TEXTFILE LOCATION '{location}'""".format(**locals())
|
TEXTFILE LOCATION '{location}'""".format(**locals())
|
||||||
|
|
||||||
logging.info(form.con.data)
|
logging.info(form.con.data)
|
||||||
engine = create_engine(form.con.data)
|
engine = create_engine(form.con.data.sqlalchemy_uri)
|
||||||
engine.execute(sql)
|
engine.execute(sql)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue